TraceX
 
Loading...
Searching...
No Matches
xml_allocator Struct Reference
Inheritance diagram for xml_allocator:
Collaboration diagram for xml_allocator:

Public Member Functions

 xml_allocator (xml_memory_page *root)
 
xml_memory_pageallocate_page (size_t data_size)
 
void * allocate_memory_oob (size_t size, xml_memory_page *&out_page)
 
void * allocate_memory (size_t size, xml_memory_page *&out_page)
 
void * allocate_object (size_t size, xml_memory_page *&out_page)
 
void deallocate_memory (void *ptr, size_t size, xml_memory_page *page)
 
char_t * allocate_string (size_t length)
 
void deallocate_string (char_t *string)
 
bool reserve ()
 

Static Public Member Functions

static void deallocate_page (xml_memory_page *page)
 

Public Attributes

xml_memory_page_root
 
size_t _busy_size
 

Constructor & Destructor Documentation

◆ xml_allocator()

xml_allocator::xml_allocator ( xml_memory_page * root)
inline
Here is the caller graph for this function:

Member Function Documentation

◆ allocate_memory()

void * xml_allocator::allocate_memory ( size_t size,
xml_memory_page *& out_page )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ allocate_memory_oob()

PUGI_IMPL_FN_NO_INLINE void * xml_allocator::allocate_memory_oob ( size_t size,
xml_memory_page *& out_page )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ allocate_object()

void * xml_allocator::allocate_object ( size_t size,
xml_memory_page *& out_page )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ allocate_page()

xml_memory_page * xml_allocator::allocate_page ( size_t data_size)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ allocate_string()

char_t * xml_allocator::allocate_string ( size_t length)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deallocate_memory()

void xml_allocator::deallocate_memory ( void * ptr,
size_t size,
xml_memory_page * page )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deallocate_page()

static void xml_allocator::deallocate_page ( xml_memory_page * page)
inlinestatic
Here is the caller graph for this function:

◆ deallocate_string()

void xml_allocator::deallocate_string ( char_t * string)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reserve()

bool xml_allocator::reserve ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ _busy_size

size_t xml_allocator::_busy_size

◆ _root

xml_memory_page* xml_allocator::_root

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