Class SBCHeapBook#
Public Functions#
Type | Name |
---|---|
SBCHeapBook (std::size_t objectSize, unsigned int numberOfObjectsInPage, const std::string & className) Builds a heap page. |
|
void * | allocate () Allocates memory for one object. |
void | free (void * objectPointer) Frees the memory at address objectPointer. |
unsigned long | getNumberOfAllocatedObjects () const Returns the number of allocated objects. |
void | print () |
virtual | ~SBCHeapBook () |
Public Functions Documentation#
function SBCHeapBook#
Builds a heap page.
SBCHeapBook::SBCHeapBook (
std::size_t objectSize,
unsigned int numberOfObjectsInPage,
const std::string & className
)
function allocate#
Allocates memory for one object.
function free#
Frees the memory at address objectPointer.
function getNumberOfAllocatedObjects#
Returns the number of allocated objects.