xpath_query_impl Struct Reference
Collaboration diagram for xpath_query_impl:

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 block
xpath_ast_node * root
xpath_allocator alloc

References alloc, block, and root.

Referenced by create(), and destroy().

Member Function Documentation

◆ create()

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 }

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

◆ destroy()

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< int >::deallocate, and xpath_query_impl().

Member Data Documentation

◆ alloc

xpath_allocator xpath_query_impl::alloc

Definition at line 10119 of file pugixml.cpp.

Referenced by destroy(), and xpath_query_impl().

◆ 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(), and xpath_query_impl().


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