![]() |
KaliVeda
Toolkit for HIC analysis
|
Memory handled by KVMemoryPool.
Created by KVClassFactory on Fri Oct 1 16:50:15 2010 Author: John Frankland,,,,
Definition at line 15 of file KVMemoryChunk.h.
#include <KVMemoryChunk.h>
Public Member Functions | |
| KVMemoryChunk () | |
| Default constructor. More... | |
| KVMemoryChunk (size_t) | |
| Allocate new chunk of size 'bytes'. More... | |
| virtual | ~KVMemoryChunk () |
| Destructor. More... | |
| void * | GetMemory (size_t) |
| KVMemoryChunk * | Next () const |
| void | Print () |
| void | SetNext (KVMemoryChunk *n) |
| KVMemoryChunk::KVMemoryChunk | ( | ) |
Default constructor.
Definition at line 13 of file KVMemoryChunk.cpp.
| KVMemoryChunk::KVMemoryChunk | ( | size_t | bytes | ) |
Allocate new chunk of size 'bytes'.
Definition at line 24 of file KVMemoryChunk.cpp.
|
virtual |
Destructor.
Definition at line 37 of file KVMemoryChunk.cpp.
| void * KVMemoryChunk::GetMemory | ( | size_t | bytes | ) |
Return pointer to block of memory of size 'bytes' If no block of this size is available, returns 0 (test it!!)
Definition at line 50 of file KVMemoryChunk.cpp.
|
inline |
Definition at line 32 of file KVMemoryChunk.h.
Definition at line 66 of file KVMemoryChunk.cpp.
|
inline |
Definition at line 28 of file KVMemoryChunk.h.