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

List of all members.

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

Definition at line 10112 of file pugixml.cpp.

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

Referenced by create().

                                  : root(0), alloc(&block)
                {
                        block.next = 0;
                        block.capacity = sizeof(block.data);
                }

Member Function Documentation

static xpath_query_impl* xpath_query_impl::create ( ) [inline, static]

Definition at line 10094 of file pugixml.cpp.

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

                {
                        void* memory = xml_memory::allocate(sizeof(xpath_query_impl));

                        return new (memory) xpath_query_impl();
                }
static void xpath_query_impl::destroy ( void *  ptr) [inline, static]

Definition at line 10101 of file pugixml.cpp.

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

                {
                        if (!ptr) return;
                        
                        // free all allocated pages
                        static_cast<xpath_query_impl*>(ptr)->alloc.release();

                        // free allocator memory (with the first page)
                        xml_memory::deallocate(ptr);
                }

Member Data Documentation

Definition at line 10119 of file pugixml.cpp.

Referenced by destroy().

Definition at line 10120 of file pugixml.cpp.

Referenced by xpath_query_impl().

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 Mon Sep 15 2014 01:23:56 for QuickFIX by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2001