Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
xml_stream_chunk< T > Struct Template Reference

Public Member Functions

 xml_stream_chunk ()

Static Public Member Functions

static xml_stream_chunkcreate ()
static void destroy (xml_stream_chunk *chunk)

Public Attributes

xml_stream_chunknext
size_t size
data [xml_memory_page_size/sizeof(T)]

Detailed Description

template<typename T>
struct xml_stream_chunk< T >

Definition at line 4855 of file pugixml.cc.

Constructor & Destructor Documentation

◆ xml_stream_chunk()

template<typename T>
xml_stream_chunk< T >::xml_stream_chunk ( )
inline

Definition at line 4878 of file pugixml.cc.

4878 : next(0), size(0)
4879 {
4880 }
xml_stream_chunk * next
Definition pugixml.cc:4882

Referenced by create(), and destroy().

Member Function Documentation

◆ create()

template<typename T>
xml_stream_chunk * xml_stream_chunk< T >::create ( )
inlinestatic

Definition at line 4857 of file pugixml.cc.

4858 {
4860 if (!memory) return 0;
4861
4862 return new (memory) xml_stream_chunk();
4863 }
static allocation_function allocate
Definition pugixml.cc:199

Referenced by load_stream_data_noseek().

◆ destroy()

template<typename T>
void xml_stream_chunk< T >::destroy ( xml_stream_chunk< T > * chunk)
inlinestatic

Definition at line 4865 of file pugixml.cc.

4866 {
4867 // free chunk chain
4868 while (chunk)
4869 {
4871
4873
4874 chunk = next_;
4875 }
4876 }
static deallocation_function deallocate
Definition pugixml.cc:200

Referenced by load_stream_data_noseek().

Member Data Documentation

◆ data

template<typename T>
T xml_stream_chunk< T >::data[xml_memory_page_size/sizeof(T)]

Definition at line 4885 of file pugixml.cc.

Referenced by load_stream_data_noseek().

◆ next

template<typename T>
xml_stream_chunk* xml_stream_chunk< T >::next

Definition at line 4882 of file pugixml.cc.

Referenced by destroy(), load_stream_data_noseek(), and xml_stream_chunk().

◆ size

template<typename T>
size_t xml_stream_chunk< T >::size

Definition at line 4883 of file pugixml.cc.

Referenced by load_stream_data_noseek(), and xml_stream_chunk().


The documentation for this struct was generated from the following file: