MemPoolT< ITEM_SIZE > Class Template Reference
Inheritance diagram for MemPoolT< ITEM_SIZE >:
MemPool

Classes

struct  Block
 
union  Item
 

Public Types

enum  { ITEMS_PER_BLOCK = (4 * 1024) / ITEM_SIZE }
 

Public Member Functions

void Clear ()
 
virtual int ItemSize () const
 
int CurrentAllocs () const
 
virtual void * Alloc ()
 
virtual void Free (void *mem)
 
void Trace (const char *name)
 
void SetTracked ()
 
int Untracked () const
 

Private Member Functions

 MemPoolT (const MemPoolT &)
 
void operator= (const MemPoolT &)
 

Private Attributes

DynArray< Block *, 10 > _blockPtrs
 
Item_root
 
int _currentAllocs
 
int _nAllocs
 
int _maxAllocs
 
int _nUntracked
 

Detailed Description

template<int ITEM_SIZE>
class tinyxml2::MemPoolT< ITEM_SIZE >

Definition at line 340 of file tinyxml2.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 431 of file tinyxml2.h.

Constructor & Destructor Documentation

◆ MemPoolT()

MemPoolT ( )
inline

Definition at line 343 of file tinyxml2.h.

◆ ~MemPoolT()

~MemPoolT ( )
inline

Definition at line 344 of file tinyxml2.h.

Member Function Documentation

◆ Alloc()

virtual void * Alloc ( )
inlinevirtual

Implements MemPool.

Definition at line 368 of file tinyxml2.h.

◆ Clear()

void Clear ( )
inlinevirtual

Implements MemPool.

Definition at line 348 of file tinyxml2.h.

◆ CurrentAllocs()

int CurrentAllocs ( ) const
inline

Definition at line 364 of file tinyxml2.h.

◆ Free()

virtual void Free ( void *  mem)
inlinevirtual

Implements MemPool.

Definition at line 394 of file tinyxml2.h.

◆ ItemSize()

virtual int ItemSize ( ) const
inlinevirtual

Implements MemPool.

Definition at line 361 of file tinyxml2.h.

◆ SetTracked()

void SetTracked ( )
inlinevirtual

Implements MemPool.

Definition at line 412 of file tinyxml2.h.

◆ Trace()

void Trace ( const char *  name)
inline

Definition at line 406 of file tinyxml2.h.

◆ Untracked()

int Untracked ( ) const
inline

Definition at line 416 of file tinyxml2.h.

Member Data Documentation

◆ _blockPtrs

DynArray< Block*, 10 > _blockPtrs
private

Definition at line 444 of file tinyxml2.h.

◆ _currentAllocs

int _currentAllocs
private

Definition at line 447 of file tinyxml2.h.

◆ _maxAllocs

int _maxAllocs
private

Definition at line 449 of file tinyxml2.h.

◆ _nAllocs

int _nAllocs
private

Definition at line 448 of file tinyxml2.h.

◆ _nUntracked

int _nUntracked
private

Definition at line 450 of file tinyxml2.h.

◆ _root

Item* _root
private

Definition at line 445 of file tinyxml2.h.


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