All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xml_allocator Struct Reference
+ Inheritance diagram for xml_allocator:

Public Member Functions

 xml_allocator (xml_memory_page *root)
xml_memory_pageallocate_page (size_t data_size)
voidallocate_memory_oob (size_t size, xml_memory_page *&out_page)
voidallocate_memory (size_t size, xml_memory_page *&out_page)
voidallocate_object (size_t size, xml_memory_page *&out_page)
void deallocate_memory (void *ptr, size_t size, xml_memory_page *page)
char_tallocate_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

size_t _busy_size

Detailed Description

Definition at line 487 of file pugixml.cpp.

Constructor & Destructor Documentation

xml_allocator::xml_allocator ( xml_memory_page root)

Definition at line 489 of file pugixml.cpp.

Member Function Documentation

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

Definition at line 520 of file pugixml.cpp.

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

Definition at line 686 of file pugixml.cpp.

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

Definition at line 566 of file pugixml.cpp.

xml_memory_page* xml_allocator::allocate_page ( size_t  data_size)

Definition at line 496 of file pugixml.cpp.

char_t* xml_allocator::allocate_string ( size_t  length)

Definition at line 616 of file pugixml.cpp.

void xml_allocator::deallocate_memory ( void ptr,
size_t  size,
xml_memory_page page 

Definition at line 572 of file pugixml.cpp.

static void xml_allocator::deallocate_page ( xml_memory_page page)

Definition at line 513 of file pugixml.cpp.

void xml_allocator::deallocate_string ( char_t string)

Definition at line 650 of file pugixml.cpp.

bool xml_allocator::reserve ( )

Definition at line 669 of file pugixml.cpp.

Member Data Documentation

size_t xml_allocator::_busy_size

Definition at line 679 of file pugixml.cpp.

xml_memory_page* xml_allocator::_root

Definition at line 678 of file pugixml.cpp.

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