MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
tinyxml2::MemPoolT< SIZE > Class Template Reference

#include <tinyxml2.h>

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

Classes

struct  Block
 
union  Chunk
 

Public Types

enum  { COUNT = (4*1024)/SIZE }
 

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)
 
void SetTracked ()
 
int Untracked () const
 
- Public Member Functions inherited from tinyxml2::MemPool
 MemPool ()
 
virtual ~MemPool ()
 

Private Attributes

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

Detailed Description

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

Definition at line 317 of file tinyxml2.h.

Member Enumeration Documentation

template<int SIZE>
anonymous enum
Enumerator
COUNT 

Definition at line 392 of file tinyxml2.h.

Constructor & Destructor Documentation

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

Definition at line 320 of file tinyxml2.h.

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

Definition at line 321 of file tinyxml2.h.

Member Function Documentation

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

Implements tinyxml2::MemPool.

Definition at line 335 of file tinyxml2.h.

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

Definition at line 331 of file tinyxml2.h.

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

Implements tinyxml2::MemPool.

Definition at line 358 of file tinyxml2.h.

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

Implements tinyxml2::MemPool.

Definition at line 328 of file tinyxml2.h.

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

Implements tinyxml2::MemPool.

Definition at line 375 of file tinyxml2.h.

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

Definition at line 370 of file tinyxml2.h.

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

Definition at line 379 of file tinyxml2.h.

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>
int tinyxml2::MemPoolT< SIZE >::_nUntracked
private
template<int SIZE>
Chunk* tinyxml2::MemPoolT< SIZE >::_root
private

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