Virtual Belgium  2.0
A micro-simulation platform for the Belgian population
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
tinyxml2::MemPoolT< SIZE > Class Template Reference

#include <tinyxml2.hpp>

Classes

struct  Block
 
union  Chunk
 

Public Member Functions

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

Private Types

enum  { COUNT = 1024/SIZE }
 

Private Attributes

DynArray< Block *, 10 > blockPtrs
 
Chunkroot
 
int currentAllocs
 
int nAllocs
 
int maxAllocs
 

Member Enumeration Documentation

template<int SIZE>
anonymous enum
private
Enumerator
COUNT 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements tinyxml2::MemPool.

template<int SIZE>
int tinyxml2::MemPoolT< SIZE >::CurrentAllocs ( ) const
inline
template<int SIZE>
virtual void tinyxml2::MemPoolT< SIZE >::Free ( void *  mem)
inlinevirtual

Implements tinyxml2::MemPool.

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

Implements tinyxml2::MemPool.

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

Member Data Documentation

template<int SIZE>
DynArray< Block*, 10 > tinyxml2::MemPoolT< SIZE >::blockPtrs
private
template<int SIZE>
int tinyxml2::MemPoolT< SIZE >::currentAllocs
private
template<int SIZE>
int tinyxml2::MemPoolT< SIZE >::maxAllocs
private
template<int SIZE>
int tinyxml2::MemPoolT< SIZE >::nAllocs
private
template<int SIZE>
Chunk* tinyxml2::MemPoolT< SIZE >::root
private

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