Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
xpath_query_impl Struct Reference
Collaboration diagram for xpath_query_impl:
Collaboration graph
[legend]

Public Member Functions

 xpath_query_impl ()
 

Static Public Member Functions

static xpath_query_implcreate ()
 
static void destroy (void *ptr)
 

Public Attributes

xpath_ast_noderoot
 
xpath_allocator alloc
 
xpath_memory_block block
 

Detailed Description

Definition at line 10092 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xpath_query_impl()

xpath_query_impl::xpath_query_impl ( )
inline

Definition at line 10112 of file pugixml.cpp.

10112 : root(0), alloc(&block)
10113 {
10114 block.next = 0;
10115 block.capacity = sizeof(block.data);
10116 }
xpath_memory_block * next
Definition pugixml.cpp:6188
xpath_memory_block block
xpath_ast_node * root
xpath_allocator alloc

References block, xpath_memory_block::capacity, xpath_memory_block::data, and xpath_memory_block::next.

Referenced by create().

Member Function Documentation

◆ create()

static xpath_query_impl * xpath_query_impl::create ( )
inlinestatic

Definition at line 10094 of file pugixml.cpp.

10095 {
10096 void* memory = xml_memory::allocate(sizeof(xpath_query_impl));
10097
10098 return new (memory) xpath_query_impl();
10099 }
static allocation_function allocate
Definition pugixml.cpp:163

References xml_memory_management_function_storage< T >::allocate, and xpath_query_impl().

◆ destroy()

static void xpath_query_impl::destroy ( void *  ptr)
inlinestatic

Definition at line 10101 of file pugixml.cpp.

10102 {
10103 if (!ptr) return;
10104
10105 // free all allocated pages
10106 static_cast<xpath_query_impl*>(ptr)->alloc.release();
10107
10108 // free allocator memory (with the first page)
10110 }
static deallocation_function deallocate
Definition pugixml.cpp:164

References alloc, xml_memory_management_function_storage< T >::deallocate, and xpath_allocator::release().

Member Data Documentation

◆ alloc

xpath_allocator xpath_query_impl::alloc

Definition at line 10119 of file pugixml.cpp.

Referenced by destroy().

◆ block

xpath_memory_block xpath_query_impl::block

Definition at line 10120 of file pugixml.cpp.

Referenced by xpath_query_impl().

◆ root

xpath_ast_node* xpath_query_impl::root

Definition at line 10118 of file pugixml.cpp.

Referenced by evaluate_string_impl().


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

Generated on Thu May 22 2025 08:23:50 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001