Home | nevrax.com |
|
NLMISC::CBlockMemory Class Template ReferenceBlock memory allocation. More...
Detailed Descriptiontemplate<class T, bool __ctor_dtor__ = true>
Block memory allocation.
|
|
For debug only, check ident.
Definition at line 239 of file block_memory.h. |
|
Constructor.
Definition at line 69 of file block_memory.h. |
|
Definition at line 78 of file block_memory.h. |
|
purge().
Definition at line 89 of file block_memory.h. |
|
Definition at line 194 of file block_memory.h. |
|
Definition at line 210 of file block_memory.h. |
|
allocate an element. ctor is called.
Definition at line 96 of file block_memory.h. |
|
Definition at line 243 of file block_memory.h. Referenced by NLMISC::CBlockMemory< CNode >::allocate. |
|
delete an element allocated with this manager. dtor is called. NULL is tested.
Definition at line 141 of file block_memory.h. |
|
delete all blocks, freeing all memory. It is an error to purge() or delete a CBlockMemory, while elements still remains!! You must free your elements with free(). NB: you can disable this assert if you set NL3D_BlockMemoryAssertOnPurge to false (good to quit a program quickly without uninitialize). Definition at line 174 of file block_memory.h. Referenced by NLMISC::CBlockMemory< CNode >::~CBlockMemory. |
|
Definition at line 294 of file block_memory.h. Referenced by NLMISC::CBlockMemory< CNode >::purge. |
|
list of blocks.
Definition at line 235 of file block_memory.h. Referenced by NLMISC::CBlockMemory< CNode >::__stl_alloc_changeEltSize, NLMISC::CBlockMemory< CNode >::allocate, and NLMISC::CBlockMemory< CNode >::purge. |
|
size of a block.
Definition at line 218 of file block_memory.h. Referenced by NLMISC::CBlockMemory< CNode >::buildBlock, and NLMISC::CBlockMemory< CNode >::CBlockMemory. |
|
size of an element in the block.
Definition at line 220 of file block_memory.h. Referenced by NLMISC::CBlockMemory< CNode >::__stl_alloc_changeEltSize, NLMISC::CBlockMemory< CNode >::__stl_alloc_getEltSize, NLMISC::CBlockMemory< CNode >::allocate, NLMISC::CBlockMemory< CNode >::buildBlock, NLMISC::CBlockMemory< CNode >::CBlockMemory, and NLMISC::CBlockMemory< CNode >::free. |
|
number of elements allocated.
Definition at line 222 of file block_memory.h. Referenced by NLMISC::CBlockMemory< CNode >::allocate, NLMISC::CBlockMemory< CNode >::CBlockMemory, NLMISC::CBlockMemory< CNode >::free, and NLMISC::CBlockMemory< CNode >::purge. |
|
next free element.
Definition at line 224 of file block_memory.h. Referenced by NLMISC::CBlockMemory< CNode >::allocate, NLMISC::CBlockMemory< CNode >::CBlockMemory, NLMISC::CBlockMemory< CNode >::free, and NLMISC::CBlockMemory< CNode >::purge. |