free void SimpleAllocatorBlock::free(void); Description: Releases the allocated space. |
getAllocator SimpleAllocator *SimpleAllocatorBlock::get_allocator(void) const; Description: Returns the SimpleAllocator object that owns this block. Returns NULL if the block has been freed. |
getMaxSize unsigned int SimpleAllocatorBlock::get_max_size(void) const; Description: Returns the maximum size this block can be reallocated to, as limited by the following block. |
getNextBlock SimpleAllocatorBlock *SimpleAllocatorBlock::get_next_block(void) const; Description: Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks. |
getSize unsigned int SimpleAllocatorBlock::get_size(void) const; Description: Returns the size of this block. It is an error to call this if the block has been freed. |
getStart unsigned int SimpleAllocatorBlock::get_start(void) const; Description: Returns the starting point of this block. It is an error to call this if the block has been freed. |
isFree bool SimpleAllocatorBlock::is_free(void) const; Description: Returns true if the block has been freed, false if it is still valid. |
output void SimpleAllocatorBlock::output(ostream &out) const; Description: |
realloc bool SimpleAllocatorBlock::realloc(unsigned int size); Description: Changes the size of this block to the specified size. Returns true if the change is accepted, false if there was not enough room. |