Public Member Functions | |
| void | link () |
| void * | unlink () |
Data Fields | |
| CChunk * | Chunk |
| CNode * | Next |
| CNode ** | Prev |
|
|
Definition at line 189 of file fixed_size_allocator.cpp. References NLMISC::CFixedSizeAllocator::_FreeSpace, NLMISC::CFixedSizeAllocator::CChunk::add(), NLMISC::CFixedSizeAllocator::CChunk::Allocator, Chunk, nlassert, and Prev. Referenced by NLMISC::CFixedSizeAllocator::free().
00190 {
00191 // destroy the obj to get back uninitialized memory
00192 nlassert(Chunk);
00193 nlassert(Chunk->Allocator);
00194
00195 CNode *&head = Chunk->Allocator->_FreeSpace;
00196 Next = head;
00197 Prev = &head;
00198 if (Next)
00199 {
00200 Next->Prev = &Next;
00201 }
00202 Chunk->Allocator->_FreeSpace = this;
00203 Chunk->add();
00204 }
|
|
|
Definition at line 178 of file fixed_size_allocator.cpp. References Chunk, NLMISC::CFixedSizeAllocator::CChunk::grab(), nlassert, NLMISC::CFixedSizeAllocator::CChunk::NumFreeObjs, and Prev. Referenced by NLMISC::CFixedSizeAllocator::alloc(), and NLMISC::CFixedSizeAllocator::CChunk::~CChunk().
|
|
|
Definition at line 68 of file fixed_size_allocator.h. Referenced by NLMISC::CFixedSizeAllocator::free(), NLMISC::CFixedSizeAllocator::CChunk::init(), link(), unlink(), and NLMISC::CFixedSizeAllocator::~CFixedSizeAllocator(). |
|
|
Definition at line 70 of file fixed_size_allocator.h. Referenced by NLMISC::CFixedSizeAllocator::CChunk::init(). |
|
|
Definition at line 71 of file fixed_size_allocator.h. Referenced by NLMISC::CFixedSizeAllocator::CChunk::init(), link(), and unlink(). |
1.3.6