CARLA
Public Member Functions | Public Attributes | List of all members
xpath_allocator Struct Reference
+ Collaboration diagram for xpath_allocator:

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
 

Detailed Description

Definition at line 7499 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xpath_allocator()

xpath_allocator::xpath_allocator ( xpath_memory_block root,
bool *  error = 0 
)
inline

Definition at line 7505 of file pugixml.cpp.

Member Function Documentation

◆ allocate()

void* xpath_allocator::allocate ( size_t  size)
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().

+ Here is the caller graph for this function:

◆ reallocate()

void* xpath_allocator::reallocate ( void *  ptr,
size_t  old_size,
size_t  new_size 
)
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().

+ Here is the caller graph for this function:

◆ release()

void xpath_allocator::release ( )
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().

+ Here is the caller graph for this function:

◆ revert()

void xpath_allocator::revert ( const xpath_allocator state)
inline

Member Data Documentation

◆ _error

bool* xpath_allocator::_error

Definition at line 7503 of file pugixml.cpp.

Referenced by xpath_parser::error_oom().

◆ _root

xpath_memory_block* xpath_allocator::_root

Definition at line 7501 of file pugixml.cpp.

Referenced by revert().

◆ _root_size

size_t xpath_allocator::_root_size

Definition at line 7502 of file pugixml.cpp.

Referenced by revert().


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