MaMiCo 1.2
Loading...
Searching...
No Matches
tinyxml2::MemPoolT< ITEM_SIZE > Class Template Reference
Inheritance diagram for tinyxml2::MemPoolT< ITEM_SIZE >:
Collaboration diagram for tinyxml2::MemPoolT< ITEM_SIZE >:

Classes

struct  Block
 
union  Item
 

Public Types

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

Public Member Functions

void Clear ()
 
virtual int ItemSize () const override
 
int CurrentAllocs () const
 
virtual void * Alloc () override
 
virtual void Free (void *mem) override
 
void Trace (const char *name)
 
void SetTracked () override
 
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
 

Member Function Documentation

◆ Alloc()

template<int ITEM_SIZE>
virtual void * tinyxml2::MemPoolT< ITEM_SIZE >::Alloc ( )
inlineoverridevirtual

Implements tinyxml2::MemPool.

◆ Free()

template<int ITEM_SIZE>
virtual void tinyxml2::MemPoolT< ITEM_SIZE >::Free ( void * mem)
inlineoverridevirtual

Implements tinyxml2::MemPool.

◆ ItemSize()

template<int ITEM_SIZE>
virtual int tinyxml2::MemPoolT< ITEM_SIZE >::ItemSize ( ) const
inlineoverridevirtual

Implements tinyxml2::MemPool.

◆ SetTracked()

template<int ITEM_SIZE>
void tinyxml2::MemPoolT< ITEM_SIZE >::SetTracked ( )
inlineoverridevirtual

Implements tinyxml2::MemPool.


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