|
| CoreScratchpadMemory (const size_t &default_page_size) |
| Memory scratchpad constructor.
|
|
virtual | ~CoreScratchpadMemory () |
| mMemory scratchpad destructor. Will call every allocated objects destructor.
|
|
template<class T > |
T * | new_object (const unsigned int &count=1) |
| Returns a handle on the allocated data. The constructor of the class is called for each newly created object, and the destructor will be called when deleting the scratchpad, or reseting it.
|
|
template<class T > |
T * | alloc_data (const unsigned int &count=1) |
| Returns a handle on the allocated raw data. No constructor or destructor call.
|
|
void | reset () |
| Reset the memory scratchpad, calling every registered destructors on allocated data.
|
|
const unsigned int & | get_page_count () const |
| Get the current number of allocated pages.
|
|
const unsigned int & | get_resize_count () const |
| Get the number of times a page has been resized.
|
|