A single block as returned from SimpleAllocator::alloc().
More...
#include "simpleAllocator.h"
List of all members.
Detailed Description
A single block as returned from SimpleAllocator::alloc().
Definition at line 95 of file simpleAllocator.h.
Constructor & Destructor Documentation
| SimpleAllocatorBlock::SimpleAllocatorBlock |
( |
SimpleAllocator * |
alloc, |
|
|
size_t |
start, |
|
|
size_t |
size |
|
) |
| [inline, protected] |
| SimpleAllocatorBlock::~SimpleAllocatorBlock |
( |
| ) |
[inline] |
Member Function Documentation
| void SimpleAllocatorBlock::do_free |
( |
| ) |
[inline, protected] |
| size_t SimpleAllocatorBlock::do_get_max_size |
( |
| ) |
const [inline, protected] |
| bool SimpleAllocatorBlock::do_realloc |
( |
size_t |
size | ) |
[inline, protected] |
| void SimpleAllocatorBlock::free |
( |
| ) |
[inline] |
| size_t SimpleAllocatorBlock::get_max_size |
( |
| ) |
const [inline] |
Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks.
Reimplemented in VertexDataBlock.
Definition at line 282 of file simpleAllocator.I.
| size_t SimpleAllocatorBlock::get_size |
( |
| ) |
const [inline] |
| size_t SimpleAllocatorBlock::get_start |
( |
| ) |
const [inline] |
| bool SimpleAllocatorBlock::is_free |
( |
| ) |
const [inline] |
Returns true if the block has been freed, false if it is still valid.
Definition at line 244 of file simpleAllocator.I.
| bool SimpleAllocatorBlock::realloc |
( |
size_t |
size | ) |
[inline] |
Changes the size of this block to the specified size.
Returns true if the change is accepted, false if there was not enough room.
Definition at line 269 of file simpleAllocator.I.
References do_realloc().
The documentation for this class was generated from the following files: