artefaktur
software engineer &        architecture

 
 
 
 

class BoehmGCAllocator

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::sys::BoehmGCAllocator Class Reference

#include <BoehmGCAllocator.h>

Inheritance diagram for acdk::lang::sys::BoehmGCAllocator:

acdk::lang::sys::AbstractAllocator acdk::lang::sys::Allocator acdk::lang::sys::SysObject List of all members.

Public Member Functions

 BoehmGCAllocator ()
virtual void * allocate (size_t size, AllocatedType at=RawMem)
 Allocates Memory.

virtual void deallocate (void *ptr, AllocatedType at=RawMem)
 Frees Memory.

void * gcalloc (size_t size, AllocatedType at)
virtual void * raw_allocate (size_t size, AllocatedType at)
virtual void raw_deallocate (size_t size, void *ptr, AllocatedType at)
virtual void listObjects (::acdk::lang::ref::NotifyObjectEventListener *listener, int flags)

Static Public Member Functions

void finalizer_callback (void *slot, void *user)

Constructor & Destructor Documentation

acdk::lang::sys::BoehmGCAllocator::BoehmGCAllocator  )  [inline]
 


Member Function Documentation

virtual void* acdk::lang::sys::BoehmGCAllocator::allocate size_t  size,
AllocatedType  at = RawMem
[virtual]
 

Allocates Memory.

It is important, that the Allocator itself will be found in MemChunkHeader directly before this memory location)

Parameters:
size size of Object (not including MemChunkHeader)
Returns:
the raw preinitialized Object not including MemChunkHeader

Reimplemented from acdk::lang::sys::AbstractAllocator.

virtual void acdk::lang::sys::BoehmGCAllocator::deallocate void *  ptr,
AllocatedType  at = RawMem
[virtual]
 

Frees Memory.

Parameters:
ptr points to user object (not including MemChunkHeader)

Reimplemented from acdk::lang::sys::AbstractAllocator.

void acdk::lang::sys::BoehmGCAllocator::finalizer_callback void *  slot,
void *  user
[static]
 

void* acdk::lang::sys::BoehmGCAllocator::gcalloc size_t  size,
AllocatedType  at
 

virtual void acdk::lang::sys::BoehmGCAllocator::listObjects ::acdk::lang::ref::NotifyObjectEventListener listener,
int  flags
[virtual]
 

Parameters:
flags combination of ListObjectsFlags

Implements acdk::lang::sys::AbstractAllocator.

virtual void* acdk::lang::sys::BoehmGCAllocator::raw_allocate size_t  size,
AllocatedType  at
[virtual]
 

Parameters:
size is including MemChunkHeader

Implements acdk::lang::sys::AbstractAllocator.

virtual void acdk::lang::sys::BoehmGCAllocator::raw_deallocate size_t  size,
void *  ptr,
AllocatedType  at
[virtual]
 

Parameters:
size is including MemChunkHeader
ptr is including MemChunkHeader

Implements acdk::lang::sys::AbstractAllocator.

 
Last modified 2005-05-08 18:32 by SYSTEM By Artefaktur, Ing. Bureau Kommer