NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <tinyxml2.h>
Classes | |
struct | Block |
union | Item |
Public Types | |
enum | { ITEMS_PER_BLOCK = (4 * 1024) / ITEM_SIZE } |
Public Member Functions | |
MemPoolT () | |
~MemPoolT () | |
void | Clear () |
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 () |
virtual int | ItemSize () const =0 |
virtual void * | Alloc ()=0 |
virtual void | Free (void *)=0 |
virtual void | SetTracked ()=0 |
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 |
Definition at line 347 of file tinyxml2.h.
anonymous enum |
Enumerator | |
---|---|
ITEMS_PER_BLOCK |
Definition at line 438 of file tinyxml2.h.
|
inline |
Definition at line 350 of file tinyxml2.h.
|
inline |
Definition at line 351 of file tinyxml2.h.
References tinyxml2::MemPoolT< ITEM_SIZE >::Clear().
|
private |
|
inlinevirtual |
Implements tinyxml2::MemPool.
Definition at line 375 of file tinyxml2.h.
References tinyxml2::MemPoolT< ITEM_SIZE >::_blockPtrs, tinyxml2::MemPoolT< ITEM_SIZE >::_currentAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_maxAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_nAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_nUntracked, tinyxml2::MemPoolT< ITEM_SIZE >::_root, tinyxml2::MemPoolT< ITEM_SIZE >::Block::items, tinyxml2::MemPoolT< ITEM_SIZE >::ITEMS_PER_BLOCK, tinyxml2::MemPoolT< ITEM_SIZE >::Item::next, and TIXMLASSERT.
Referenced by tinyxml2::XMLDocument::CreateUnlinkedNode().
|
inline |
Definition at line 355 of file tinyxml2.h.
References tinyxml2::MemPoolT< ITEM_SIZE >::_blockPtrs, tinyxml2::MemPoolT< ITEM_SIZE >::_currentAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_maxAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_nAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_nUntracked, and tinyxml2::MemPoolT< ITEM_SIZE >::_root.
Referenced by tinyxml2::MemPoolT< ITEM_SIZE >::~MemPoolT().
|
inline |
Definition at line 371 of file tinyxml2.h.
References tinyxml2::MemPoolT< ITEM_SIZE >::_currentAllocs.
|
inlinevirtual |
Implements tinyxml2::MemPool.
Definition at line 401 of file tinyxml2.h.
References tinyxml2::MemPoolT< ITEM_SIZE >::_currentAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_root, and tinyxml2::MemPoolT< ITEM_SIZE >::Item::next.
|
inlinevirtual |
Implements tinyxml2::MemPool.
Definition at line 368 of file tinyxml2.h.
Referenced by tinyxml2::XMLDocument::CreateUnlinkedNode().
|
private |
|
inlinevirtual |
Implements tinyxml2::MemPool.
Definition at line 419 of file tinyxml2.h.
References tinyxml2::MemPoolT< ITEM_SIZE >::_nUntracked.
|
inline |
Definition at line 413 of file tinyxml2.h.
References tinyxml2::MemPoolT< ITEM_SIZE >::_blockPtrs, tinyxml2::MemPoolT< ITEM_SIZE >::_currentAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_maxAllocs, tinyxml2::MemPoolT< ITEM_SIZE >::_nAllocs, and name.
|
inline |
Definition at line 423 of file tinyxml2.h.
References tinyxml2::MemPoolT< ITEM_SIZE >::_nUntracked.
|
private |
Definition at line 451 of file tinyxml2.h.
Referenced by tinyxml2::MemPoolT< ITEM_SIZE >::Alloc(), tinyxml2::MemPoolT< ITEM_SIZE >::Clear(), and tinyxml2::MemPoolT< ITEM_SIZE >::Trace().
|
private |
Definition at line 454 of file tinyxml2.h.
Referenced by tinyxml2::MemPoolT< ITEM_SIZE >::Alloc(), tinyxml2::MemPoolT< ITEM_SIZE >::Clear(), tinyxml2::MemPoolT< ITEM_SIZE >::CurrentAllocs(), tinyxml2::MemPoolT< ITEM_SIZE >::Free(), and tinyxml2::MemPoolT< ITEM_SIZE >::Trace().
|
private |
Definition at line 456 of file tinyxml2.h.
Referenced by tinyxml2::MemPoolT< ITEM_SIZE >::Alloc(), tinyxml2::MemPoolT< ITEM_SIZE >::Clear(), and tinyxml2::MemPoolT< ITEM_SIZE >::Trace().
|
private |
Definition at line 455 of file tinyxml2.h.
Referenced by tinyxml2::MemPoolT< ITEM_SIZE >::Alloc(), tinyxml2::MemPoolT< ITEM_SIZE >::Clear(), and tinyxml2::MemPoolT< ITEM_SIZE >::Trace().
|
private |
Definition at line 457 of file tinyxml2.h.
Referenced by tinyxml2::MemPoolT< ITEM_SIZE >::Alloc(), tinyxml2::MemPoolT< ITEM_SIZE >::Clear(), tinyxml2::MemPoolT< ITEM_SIZE >::SetTracked(), and tinyxml2::MemPoolT< ITEM_SIZE >::Untracked().
|
private |
Definition at line 452 of file tinyxml2.h.
Referenced by tinyxml2::MemPoolT< ITEM_SIZE >::Alloc(), tinyxml2::MemPoolT< ITEM_SIZE >::Clear(), and tinyxml2::MemPoolT< ITEM_SIZE >::Free().