Clarisse 4.0 SP5b SDK  4.0.0.0.5.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
CtxScratchpad Class Reference
Inheritance diagram for CtxScratchpad:
CoreScratchpadMemory

Public Member Functions

const size_t & get_size () const
 
void reserve (const size_t &size)
 
void * alloc (const size_t &size)
 
template<class T >
CoreBasicArray< T > alloc_array (const unsigned int &count)
 
- Public Member Functions inherited from CoreScratchpadMemory
 CoreScratchpadMemory (const size_t &default_page_size)
 Memory scratchpad constructor.
 
virtual ~CoreScratchpadMemory ()
 mMemory scratchpad destructor. Will call every allocated objects destructor.
 
template<typename TYPE >
TYPE * 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<typename TYPE >
TYPE * 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.