Public Member Functions | |
void * | allocate (size_t size) |
void * | reallocate (void *ptr, size_t old_size, size_t new_size) |
void | release () |
void | revert (const xpath_allocator &state) |
xpath_allocator (xpath_memory_block *root, bool *error=0) | |
Public Attributes | |
bool * | _error |
xpath_memory_block * | _root |
size_t | _root_size |
Definition at line 7499 of file pugixml.cpp.
|
inline |
Definition at line 7505 of file pugixml.cpp.
|
inline |
Definition at line 7509 of file pugixml.cpp.
References pugi::xml_node::_root, xml_memory_management_function_storage< T >::allocate, xpath_memory_block::capacity, xpath_memory_block::data, and xpath_memory_block::next.
Referenced by xpath_parser::alloc_node(), xpath_parser::alloc_string(), convert_number_to_string(), xpath_string::duplicate_string(), xpath_ast_node::eval_string_concat(), and translate_table_generate().
|
inline |
Definition at line 7546 of file pugixml.cpp.
References xpath_memory_block::data, xml_memory_management_function_storage< T >::deallocate, and xpath_memory_block::next.
Referenced by xpath_string::append(), xpath_node_set_raw::append(), and xpath_node_set_raw::push_back_grow().
|
inline |
Definition at line 7612 of file pugixml.cpp.
References pugi::xml_node::_root, xml_memory_management_function_storage< T >::deallocate, and xpath_memory_block::next.
Referenced by xpath_query_impl::destroy(), and xpath_stack_data::~xpath_stack_data().
|
inline |
Definition at line 7593 of file pugixml.cpp.
References pugi::xml_node::_root, _root, _root_size, xml_memory_management_function_storage< T >::deallocate, and xpath_memory_block::next.
bool* xpath_allocator::_error |
Definition at line 7503 of file pugixml.cpp.
Referenced by xpath_parser::error_oom().
xpath_memory_block* xpath_allocator::_root |
Definition at line 7501 of file pugixml.cpp.
Referenced by revert().
size_t xpath_allocator::_root_size |
Definition at line 7502 of file pugixml.cpp.
Referenced by revert().