GOAT (Geometrical optics application tool) 0.1
Loading...
Searching...
No Matches
tinyxml2::MemPoolT< ITEM_SIZE > Class Template Reference

#include <tinyxml2.h>

Inheritance diagram for tinyxml2::MemPoolT< ITEM_SIZE >:
tinyxml2::MemPool tinyxml2::MemPool

Classes

struct  Block
union  Item

Public Types

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

Public Member Functions

virtual void * Alloc ()
virtual void * Alloc ()
void Clear ()
void Clear ()
int CurrentAllocs () const
int CurrentAllocs () const
virtual void Free (void *mem)
virtual void Free (void *mem)
virtual int ItemSize () const
virtual int ItemSize () const
 MemPoolT ()
 MemPoolT ()
void SetTracked ()
void SetTracked ()
void Trace (const char *name)
void Trace (const char *name)
int Untracked () const
int Untracked () const
 ~MemPoolT ()
 ~MemPoolT ()
Public Member Functions inherited from tinyxml2::MemPool
 MemPool ()
 MemPool ()
virtual ~MemPool ()
virtual ~MemPool ()

Private Member Functions

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

Private Attributes

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

Detailed Description

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

Definition at line 347 of file tinyxml2.h.

Member Enumeration Documentation

◆ anonymous enum

template<int ITEM_SIZE>
anonymous enum
Enumerator
ITEMS_PER_BLOCK 

Definition at line 438 of file tinyxml2.h.

◆ anonymous enum

template<int ITEM_SIZE>
anonymous enum
Enumerator
ITEMS_PER_BLOCK 

Definition at line 438 of file tinyxml2.h.

Constructor & Destructor Documentation

◆ MemPoolT() [1/4]

template<int ITEM_SIZE>
tinyxml2::MemPoolT< ITEM_SIZE >::MemPoolT ( )
inline

Definition at line 350 of file tinyxml2.h.

◆ ~MemPoolT() [1/2]

template<int ITEM_SIZE>
tinyxml2::MemPoolT< ITEM_SIZE >::~MemPoolT ( )
inline

Definition at line 351 of file tinyxml2.h.

◆ MemPoolT() [2/4]

template<int ITEM_SIZE>
tinyxml2::MemPoolT< ITEM_SIZE >::MemPoolT ( const MemPoolT< ITEM_SIZE > & )
private

◆ MemPoolT() [3/4]

template<int ITEM_SIZE>
tinyxml2::MemPoolT< ITEM_SIZE >::MemPoolT ( )
inline

Definition at line 350 of file tinyxml2.h.

◆ ~MemPoolT() [2/2]

template<int ITEM_SIZE>
tinyxml2::MemPoolT< ITEM_SIZE >::~MemPoolT ( )
inline

Definition at line 351 of file tinyxml2.h.

◆ MemPoolT() [4/4]

template<int ITEM_SIZE>
tinyxml2::MemPoolT< ITEM_SIZE >::MemPoolT ( const MemPoolT< ITEM_SIZE > & )
private

Member Function Documentation

◆ Alloc() [1/2]

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

Implements tinyxml2::MemPool.

Definition at line 375 of file tinyxml2.h.

◆ Alloc() [2/2]

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

Implements tinyxml2::MemPool.

Definition at line 375 of file tinyxml2.h.

◆ Clear() [1/2]

template<int ITEM_SIZE>
void tinyxml2::MemPoolT< ITEM_SIZE >::Clear ( )
inline

Definition at line 355 of file tinyxml2.h.

◆ Clear() [2/2]

template<int ITEM_SIZE>
void tinyxml2::MemPoolT< ITEM_SIZE >::Clear ( )
inline

Definition at line 355 of file tinyxml2.h.

◆ CurrentAllocs() [1/2]

template<int ITEM_SIZE>
int tinyxml2::MemPoolT< ITEM_SIZE >::CurrentAllocs ( ) const
inline

Definition at line 371 of file tinyxml2.h.

◆ CurrentAllocs() [2/2]

template<int ITEM_SIZE>
int tinyxml2::MemPoolT< ITEM_SIZE >::CurrentAllocs ( ) const
inline

Definition at line 371 of file tinyxml2.h.

◆ Free() [1/2]

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

Implements tinyxml2::MemPool.

Definition at line 401 of file tinyxml2.h.

◆ Free() [2/2]

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

Implements tinyxml2::MemPool.

Definition at line 401 of file tinyxml2.h.

◆ ItemSize() [1/2]

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

Implements tinyxml2::MemPool.

Definition at line 368 of file tinyxml2.h.

◆ ItemSize() [2/2]

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

Implements tinyxml2::MemPool.

Definition at line 368 of file tinyxml2.h.

◆ operator=() [1/2]

template<int ITEM_SIZE>
void tinyxml2::MemPoolT< ITEM_SIZE >::operator= ( const MemPoolT< ITEM_SIZE > & )
private

◆ operator=() [2/2]

template<int ITEM_SIZE>
void tinyxml2::MemPoolT< ITEM_SIZE >::operator= ( const MemPoolT< ITEM_SIZE > & )
private

◆ SetTracked() [1/2]

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

Implements tinyxml2::MemPool.

Definition at line 419 of file tinyxml2.h.

◆ SetTracked() [2/2]

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

Implements tinyxml2::MemPool.

Definition at line 419 of file tinyxml2.h.

◆ Trace() [1/2]

template<int ITEM_SIZE>
void tinyxml2::MemPoolT< ITEM_SIZE >::Trace ( const char * name)
inline

Definition at line 413 of file tinyxml2.h.

◆ Trace() [2/2]

template<int ITEM_SIZE>
void tinyxml2::MemPoolT< ITEM_SIZE >::Trace ( const char * name)
inline

Definition at line 413 of file tinyxml2.h.

◆ Untracked() [1/2]

template<int ITEM_SIZE>
int tinyxml2::MemPoolT< ITEM_SIZE >::Untracked ( ) const
inline

Definition at line 423 of file tinyxml2.h.

◆ Untracked() [2/2]

template<int ITEM_SIZE>
int tinyxml2::MemPoolT< ITEM_SIZE >::Untracked ( ) const
inline

Definition at line 423 of file tinyxml2.h.

Member Data Documentation

◆ _blockPtrs

template<int ITEM_SIZE>
DynArray< Block *, 10 > tinyxml2::MemPoolT< ITEM_SIZE >::_blockPtrs
private

Definition at line 451 of file tinyxml2.h.

◆ _currentAllocs

template<int ITEM_SIZE>
int tinyxml2::MemPoolT< ITEM_SIZE >::_currentAllocs
private

Definition at line 454 of file tinyxml2.h.

◆ _maxAllocs

template<int ITEM_SIZE>
int tinyxml2::MemPoolT< ITEM_SIZE >::_maxAllocs
private

Definition at line 456 of file tinyxml2.h.

◆ _nAllocs

template<int ITEM_SIZE>
int tinyxml2::MemPoolT< ITEM_SIZE >::_nAllocs
private

Definition at line 455 of file tinyxml2.h.

◆ _nUntracked

template<int ITEM_SIZE>
int tinyxml2::MemPoolT< ITEM_SIZE >::_nUntracked
private

Definition at line 457 of file tinyxml2.h.

◆ _root

template<int ITEM_SIZE>
Item * tinyxml2::MemPoolT< ITEM_SIZE >::_root
private

Definition at line 452 of file tinyxml2.h.


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