Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
xpath_query_impl Struct Reference

Public Member Functions

 xpath_query_impl ()

Static Public Member Functions

static xpath_query_implcreate ()
static void destroy (xpath_query_impl *impl)

Public Attributes

xpath_ast_noderoot
xpath_allocator alloc
xpath_memory_block block
bool oom

Detailed Description

Definition at line 12252 of file pugixml.cc.

Constructor & Destructor Documentation

◆ xpath_query_impl()

xpath_query_impl::xpath_query_impl ( )
inline

Definition at line 12271 of file pugixml.cc.

12271 : root(0), alloc(&block, &oom), oom(false)
12272 {
12273 block.next = 0;
12274 block.capacity = sizeof(block.data);
12275 }
xpath_memory_block block
Definition pugixml.cc:12279
xpath_ast_node * root
Definition pugixml.cc:12277
xpath_allocator alloc
Definition pugixml.cc:12278

Referenced by create(), and destroy().

Member Function Documentation

◆ create()

xpath_query_impl * xpath_query_impl::create ( )
inlinestatic

Definition at line 12254 of file pugixml.cc.

12255 {
12256 void* memory = xml_memory::allocate(sizeof(xpath_query_impl));
12257 if (!memory) return 0;
12258
12259 return new (memory) xpath_query_impl();
12260 }
static allocation_function allocate
Definition pugixml.cc:199

◆ destroy()

void xpath_query_impl::destroy ( xpath_query_impl * impl)
inlinestatic

Definition at line 12262 of file pugixml.cc.

12263 {
12264 // free all allocated pages
12265 impl->alloc.release();
12266
12267 // free allocator memory (with the first page)
12269 }
static deallocation_function deallocate
Definition pugixml.cc:200

Member Data Documentation

◆ alloc

xpath_allocator xpath_query_impl::alloc

Definition at line 12278 of file pugixml.cc.

Referenced by destroy(), and xpath_query_impl().

◆ block

xpath_memory_block xpath_query_impl::block

Definition at line 12279 of file pugixml.cc.

Referenced by xpath_query_impl().

◆ oom

bool xpath_query_impl::oom

Definition at line 12280 of file pugixml.cc.

Referenced by xpath_query_impl().

◆ root

xpath_ast_node* xpath_query_impl::root

Definition at line 12277 of file pugixml.cc.

Referenced by evaluate_node_set_prepare(), and xpath_query_impl().


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