![]() |
KaliVeda
Toolkit for HIC analysis
|
Managed pool of memory.
Created by KVClassFactory on Fri Oct 1 16:50:02 2010 Author: John Frankland,,,,
Definition at line 15 of file KVMemoryPool.h.
#include <KVMemoryPool.h>
Public Member Functions | |
| KVMemoryPool (int nchunks, size_t bytes) | |
| Create nchunks chunks each of size 'bytes'. More... | |
| virtual | ~KVMemoryPool () |
| Destructor. More... | |
| void * | GetMemory (size_t bytes) |
| return pointer to memory of size 'bytes' More... | |
| void | Print () |
Private Attributes | |
| size_t | fChunkSize |
| size of chunks in bytes More... | |
| KVMemoryChunk * | fFirst |
| first chunk in pool More... | |
| KVMemoryChunk * | fLast |
| first chunk in pool More... | |
| KVMemoryChunk * | fLastChunkUsed |
| KVMemoryPool::KVMemoryPool | ( | int | nchunks, |
| size_t | bytes | ||
| ) |
Create nchunks chunks each of size 'bytes'.
Definition at line 13 of file KVMemoryPool.cpp.
|
virtual |
Destructor.
Definition at line 65 of file KVMemoryPool.cpp.
| void * KVMemoryPool::GetMemory | ( | size_t | bytes | ) |
return pointer to memory of size 'bytes'
Definition at line 32 of file KVMemoryPool.cpp.
Definition at line 81 of file KVMemoryPool.cpp.
|
private |
size of chunks in bytes
Definition at line 19 of file KVMemoryPool.h.
|
private |
first chunk in pool
Definition at line 16 of file KVMemoryPool.h.
|
private |
first chunk in pool
Definition at line 17 of file KVMemoryPool.h.
|
private |
Definition at line 18 of file KVMemoryPool.h.