xml_stream_chunk< T > Struct Template Reference
Collaboration diagram for xml_stream_chunk< T >:

Public Member Functions

 xml_stream_chunk ()

Static Public Member Functions

static xml_stream_chunkcreate ()
static void destroy (void *ptr)

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 3805 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xml_stream_chunk()

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

Definition at line 3827 of file pugixml.cpp.

3827 : next(0), size(0)
3828 {
3829 }
xml_stream_chunk * next
Definition pugixml.cpp:3831

References next, and size.

Referenced by create(), and destroy().

Member Function Documentation

◆ create()

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

Definition at line 3807 of file pugixml.cpp.

3808 {
3810
3811 return new (memory) xml_stream_chunk();
3812 }

References xml_memory_management_function_storage< int >::allocate, and xml_stream_chunk().

Referenced by load_stream_data_noseek().

◆ destroy()

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

Definition at line 3814 of file pugixml.cpp.

3815 {
3816 xml_stream_chunk* chunk = static_cast<xml_stream_chunk*>(ptr);
3817
3818 // free chunk chain
3819 while (chunk)
3820 {
3823 chunk = next;
3824 }
3825 }
static deallocation_function deallocate
Definition pugixml.cpp:164

References xml_memory_management_function_storage< int >::deallocate, next, and xml_stream_chunk().

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 3834 of file pugixml.cpp.

Referenced by load_stream_data_noseek().

◆ next

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

Definition at line 3831 of file pugixml.cpp.

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 3832 of file pugixml.cpp.

Referenced by load_stream_data_noseek(), and xml_stream_chunk().


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

Generated on for QuickFIX by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2001