Embedded Template Library 1.0
|
#include <fixed_sized_memory_block_allocator.h>
Public Member Functions | |
fixed_sized_memory_block_allocator () | |
Default constructor. | |
![]() | |
imemory_block_allocator () | |
Default constructor. | |
void * | allocate (size_t required_size, size_t required_alignment) |
bool | release (const void *const p) |
bool | is_owner_of (const void *const p) const |
![]() | |
successor () | |
Default constructor. | |
successor (successor_type &s) | |
Construct from a successor type. | |
void | set_successor (successor_type &s) |
Set the successor. | |
void | append_successor (TSuccessor &s) |
Append a successor. | |
void | clear_successor () |
Clear the successor. | |
void | clear_successor_chain () |
Clear the successor chain. | |
successor_type & | get_successor () const |
bool | has_successor () const |
Does this have a successor? | |
Static Public Attributes | |
static ETL_CONSTANT size_t | Block_Size = VBlock_Size |
static ETL_CONSTANT size_t | Alignment = VAlignment |
static ETL_CONSTANT size_t | Size = VSize |
Protected Member Functions | |
virtual void * | allocate_block (size_t required_size, size_t required_alignment) ETL_OVERRIDE |
The overridden virtual function to allocate a block. | |
virtual bool | release_block (const void *const pblock) ETL_OVERRIDE |
The overridden virtual function to release a block. | |
virtual bool | is_owner_of_block (const void *const pblock) const ETL_OVERRIDE |
Returns true if the allocator is the owner of the block. | |
Additional Inherited Members | |
![]() | |
typedef imemory_block_allocator | successor_type |
The fixed sized memory block pool. The allocated memory blocks are all the same size.
|
inlineprotectedvirtual |
The overridden virtual function to allocate a block.
Implements etl::imemory_block_allocator.
|
inlineprotectedvirtual |
Returns true if the allocator is the owner of the block.
Implements etl::imemory_block_allocator.
|
inlineprotectedvirtual |
The overridden virtual function to release a block.
Implements etl::imemory_block_allocator.