#include <memory_manager.hpp>


Public Member Functions | |
| size_t | destroyed () |
| accessor | |
| size_t | allocated () |
| accessor | |
| void * | malloc () |
| allocate one block for an object | |
| void * | confirm (void *p_storage) |
| helper for weak pointer | |
Public Attributes | |
| MemoryAllocatorBase * | next |
| implementation detail | |
| MemoryAllocatorBase * | prior |
| implementation detail | |
Protected Member Functions | |
| void * | internal_malloc () |
| Allocation. | |
| void * | internal_add_block () |
| Allocation. | |
| size_t | block_size () const |
| Info. | |
| void | free (void *p_block) |
| Allocation. | |
Protected Attributes | |
| DestroyItem | f_destroy_item |
| pointer to object destructor | |
Definition at line 132 of file memory_manager.hpp.
| void * MemoryAllocatorBase::confirm | ( | void * | p_storage | ) | [inherited] |
helper for weak pointer
Checks, if the given pointer represents a valid block managed by this.
Definition at line 213 of file memory_manager.cxx.
| void * FixedSizeAllocator::internal_malloc | ( | ) | [protected, inherited] |
Allocation.
Tries to find an unused block and returns a pointer to it.
Definition at line 310 of file fixed_size_allocator.cxx.
| void * FixedSizeAllocator::internal_add_block | ( | ) | [protected, inherited] |
Allocation.
Forces the allocator to add a new set of unused blocks to its internal list and allocates one block of the newly added set immediatly.
| bad_alloc | internal allocation failed |
Definition at line 341 of file fixed_size_allocator.cxx.
| size_t GCpp::FixedSizeAllocator::block_size | ( | ) | const [inline, protected, inherited] |
| void FixedSizeAllocator::free | ( | void * | p_block | ) | [inherited] |
Allocation.
Releases a block of memory to the allocator. Will be kept for later usage.
| p_block | a block previously allocated with malloc |
Definition at line 256 of file fixed_size_allocator.cxx.
1.5.4