|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::lang::sys::Allocator Class Reference#include <Allocator.h>
Inheritance diagram for acdk::lang::sys::Allocator:
List of all members.
Detailed Description
API: ACDK
Heaps that manages memory An Allocator has a little overhead:.
AllocatorHeader:
0 - 4 ( Allocator*)
5 - 8 size_t size of allocated chunk including AllocatorHeader
acdk::lang::Object/Raw
9 - n the allocated memory
- Author:
- Roger Rene Kommer
- Version:
- Revision
- 1.21
- Date:
- Date
- 2005/02/05 10:44:59
Constructor & Destructor Documentation
acdk::lang::sys::Allocator::Allocator |
( |
int |
allocatorFlags = StandardAllocatorType |
) |
[inline] |
|
virtual acdk::lang::sys::Allocator::~Allocator |
( |
|
) |
[inline, virtual] |
|
|
type of the allocated object
- See also:
- acdk::lang::TracedRawAllocatorInfo
|
Member Function Documentation
virtual void* acdk::lang::sys::Allocator::allocate |
( |
size_t |
size, |
|
|
AllocatedType |
at = RawMem |
|
) |
[pure virtual] |
|
virtual void acdk::lang::sys::Allocator::deallocate |
( |
void * |
ptr, |
|
|
AllocatedType |
at = RawMem |
|
) |
[pure virtual] |
|
virtual bool acdk::lang::sys::Allocator::doGc |
( |
bool |
threadStorage = true, |
|
|
bool |
force = false |
|
) |
[pure virtual] |
|
virtual const AllocatorInfo& acdk::lang::sys::Allocator::getAllocatorInfo |
( |
|
) |
[pure virtual] |
|
void* acdk::lang::sys::Allocator::getChunkFromObject |
( |
void * |
ptr |
) |
[inline, static] |
|
int acdk::lang::sys::Allocator::getFlags |
( |
|
) |
[inline] |
|
MemChunkHeader* acdk::lang::sys::Allocator::getHeaderFromChunk |
( |
void * |
obj |
) |
[inline, static] |
|
MemChunkHeader* acdk::lang::sys::Allocator::getHeaderFromObject |
( |
void * |
obj |
) |
[inline, static] |
|
size_t acdk::lang::sys::Allocator::getHeaderSize |
( |
|
) |
[inline, static] |
|
void* acdk::lang::sys::Allocator::getObjectFromChunk |
( |
void * |
ptr |
) |
[inline, static] |
|
void acdk::lang::sys::Allocator::initObjectPtr |
( |
void * |
ptr, |
|
|
AllocatedType |
type |
|
) |
|
|
|
use to initialize Object flags probably has no effects
- Todo:
- check if this function is superflous
|
virtual void acdk::lang::sys::Allocator::lock |
( |
|
) |
[pure virtual] |
|
void* acdk::lang::sys::Allocator::os_alloc |
( |
size_t |
size |
) |
|
|
|
underlying allocation mechanism via operator ::new may call doGc and or throw OutOfMemoryError
|
void acdk::lang::sys::Allocator::os_dealloc |
( |
size_t |
size, |
|
|
void * |
ptr |
|
) |
|
|
|
dealocate memory via operator ::delete
|
virtual void acdk::lang::sys::Allocator::unlock |
( |
|
) |
[pure virtual] |
|
Member Data Documentation
|
bit combination of AllocatorTypeFlags
|
|
|