OpenCPN Partial API docs
Loading...
Searching...
No Matches
xml_allocator Struct Reference
Inheritance diagram for xml_allocator:
xml_document_struct

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 495 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xml_allocator()

xml_allocator::xml_allocator ( xml_memory_page root)
inline

Definition at line 496 of file pugixml.cpp.

Member Function Documentation

◆ allocate_memory()

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

Definition at line 525 of file pugixml.cpp.

◆ allocate_memory_oob()

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

Definition at line 702 of file pugixml.cpp.

◆ allocate_object()

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

Definition at line 571 of file pugixml.cpp.

◆ allocate_page()

xml_memory_page * xml_allocator::allocate_page ( size_t  data_size)
inline

Definition at line 503 of file pugixml.cpp.

◆ allocate_string()

char_t * xml_allocator::allocate_string ( size_t  length)
inline

Definition at line 617 of file pugixml.cpp.

◆ deallocate_memory()

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

Definition at line 576 of file pugixml.cpp.

◆ deallocate_page()

static void xml_allocator::deallocate_page ( xml_memory_page page)
inlinestatic

Definition at line 519 of file pugixml.cpp.

◆ deallocate_string()

void xml_allocator::deallocate_string ( char_t *  string)
inline

Definition at line 661 of file pugixml.cpp.

◆ reserve()

bool xml_allocator::reserve ( )
inline

Definition at line 686 of file pugixml.cpp.

Member Data Documentation

◆ _busy_size

size_t xml_allocator::_busy_size

Definition at line 695 of file pugixml.cpp.

◆ _root

xml_memory_page* xml_allocator::_root

Definition at line 694 of file pugixml.cpp.


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