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  }

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  }

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  }

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:
xpath_query_impl::alloc
xpath_allocator alloc
Definition: pugixml.cpp:10119
xpath_memory_block::data
char data[4096]
Definition: pugixml.cpp:6197
xpath_memory_block::next
xpath_memory_block * next
Definition: pugixml.cpp:6188
xpath_query_impl::block
xpath_memory_block block
Definition: pugixml.cpp:10120
xpath_allocator::release
void release()
Definition: pugixml.cpp:6331
xml_memory_management_function_storage::deallocate
static deallocation_function deallocate
Definition: pugixml.cpp:164
xpath_query_impl::root
xpath_ast_node * root
Definition: pugixml.cpp:10118
xml_memory_management_function_storage::allocate
static allocation_function allocate
Definition: pugixml.cpp:163
xpath_query_impl::xpath_query_impl
xpath_query_impl()
Definition: pugixml.cpp:10112
xpath_query_impl
Definition: pugixml.cpp:10092
xpath_memory_block::capacity
size_t capacity
Definition: pugixml.cpp:6189

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2001