Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
tinyxml2::MemPoolT< SIZE > Class Template Reference

#include "tinyxml2.h"

Inheritance diagram for tinyxml2::MemPoolT< SIZE >:
Inheritance graph
Collaboration diagram for tinyxml2::MemPoolT< SIZE >:
Collaboration graph

Data Structures

struct  Block
 
union  Chunk
 

Public Types

enum  { COUNT = 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 296 of file tinyxml2.h.


Data Structure Documentation

struct tinyxml2::MemPoolT::Block

template<int SIZE>
struct tinyxml2::MemPoolT< SIZE >::Block

Definition at line 369 of file tinyxml2.h.

Collaboration diagram for tinyxml2::MemPoolT< SIZE >::Block:
Collaboration graph
Data Fields
Chunk chunk[COUNT]
union tinyxml2::MemPoolT::Chunk

template<int SIZE>
union tinyxml2::MemPoolT< SIZE >::Chunk

Definition at line 365 of file tinyxml2.h.

Collaboration diagram for tinyxml2::MemPoolT< SIZE >::Chunk:
Collaboration graph
Data Fields
char mem[SIZE]
Chunk * next

Member Enumeration Documentation

template<int SIZE>
anonymous enum
Enumerator
COUNT 

Definition at line 362 of file tinyxml2.h.

Constructor & Destructor Documentation

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

Definition at line 299 of file tinyxml2.h.

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

Definition at line 300 of file tinyxml2.h.

Member Function Documentation

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

Implements tinyxml2::MemPool.

Definition at line 314 of file tinyxml2.h.

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

Definition at line 310 of file tinyxml2.h.

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

Implements tinyxml2::MemPool.

Definition at line 337 of file tinyxml2.h.

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

Implements tinyxml2::MemPool.

Definition at line 307 of file tinyxml2.h.

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

Implements tinyxml2::MemPool.

Definition at line 354 of file tinyxml2.h.

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

Definition at line 349 of file tinyxml2.h.

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

Definition at line 358 of file tinyxml2.h.

Field Documentation

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

Definition at line 372 of file tinyxml2.h.

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

Definition at line 375 of file tinyxml2.h.

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

Definition at line 377 of file tinyxml2.h.

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

Definition at line 376 of file tinyxml2.h.

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

Definition at line 378 of file tinyxml2.h.

template<int SIZE>
Chunk* tinyxml2::MemPoolT< SIZE >::_root
private

Definition at line 373 of file tinyxml2.h.


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