#include <MemCache.hpp>
Public Methods | |
| MemCache (int cachesize) | |
| MemCache (int *cache, int cachesize) | |
| use the given memory | |
| MemCache () | |
| ~MemCache () | |
| int * | getMem (int chunksize) |
| int * | getMoreMem (int newsize, int *location, int oldsize) |
| void | freeMem (int *location, int memsize) |
| void | flushMem () |
| const int * | getBegin () |
| const int * | getEnd () |
|
|
constructor
|
|
||||||||||||
|
use the given memory
|
|
|
default constructor that doesn't do much |
|
|
destructor free the memory we allocated |
|
|
reinitializes |
|
||||||||||||
|
"free" the memory at this pointer this cache will remember it in the free list this does not mean delete the memory
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
returns pointer to a new location of newsize containing all the elements of the old location
|
1.2.18