μHAL (v2.7.9)
Part of the IPbus software repository
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
xml_allocator Struct Reference
Inheritance diagram for xml_allocator:
[legend]
Collaboration diagram for xml_allocator:
[legend]

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
 

Detailed Description

Definition at line 508 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xml_allocator()

xml_allocator::xml_allocator ( xml_memory_page root)
inline

Definition at line 510 of file pugixml.cpp.

Member Function Documentation

◆ allocate_memory()

void* xml_allocator::allocate_memory ( size_t  size,
xml_memory_page *&  out_page 
)
inline

◆ allocate_memory_oob()

PUGI__FN_NO_INLINE void * xml_allocator::allocate_memory_oob ( size_t  size,
xml_memory_page *&  out_page 
)

◆ allocate_object()

void* xml_allocator::allocate_object ( size_t  size,
xml_memory_page *&  out_page 
)
inline

Definition at line 587 of file pugixml.cpp.

References allocate_memory().

Referenced by allocate_attribute(), and allocate_node().

◆ allocate_page()

xml_memory_page* xml_allocator::allocate_page ( size_t  data_size)
inline

◆ allocate_string()

char_t* xml_allocator::allocate_string ( size_t  length)
inline

◆ deallocate_memory()

void xml_allocator::deallocate_memory ( void *  ptr,
size_t  size,
xml_memory_page page 
)
inline

◆ deallocate_page()

static void xml_allocator::deallocate_page ( xml_memory_page page)
inlinestatic

Definition at line 534 of file pugixml.cpp.

References xml_memory_management_function_storage< T >::deallocate.

Referenced by deallocate_memory().

◆ deallocate_string()

void xml_allocator::deallocate_string ( char_t *  string)
inline

◆ reserve()

bool xml_allocator::reserve ( )
inline

Definition at line 690 of file pugixml.cpp.

Referenced by append_new_attribute(), append_new_node(), and strcpy_insitu().

Member Data Documentation

◆ _busy_size

size_t xml_allocator::_busy_size

Definition at line 700 of file pugixml.cpp.

Referenced by allocate_memory(), allocate_memory_oob(), and deallocate_memory().

◆ _root

xml_memory_page* xml_allocator::_root

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