2005/5/9

     
 

class BitmapPagedAllocator

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

acdk::lang::sys::BitmapPagedAllocator Class Reference

#include <BitmapPagedAllocator.h>

Inheritance diagram for acdk::lang::sys::BitmapPagedAllocator:

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

Public Member Functions

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

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

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

Protected Attributes

BitmapPage< 32 > * _page32
BitmapPage< 64 > * _page64
BitmapPage< 128 > * _page128
BitmapPage< 512 > * _page512
BitmapPage< 1024 > * _page1024
BitmapPage< 2048 > * _page2048
RawPage_rawPagesFirst
RawPage_rawPagesLast

Constructor & Destructor Documentation

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

virtual acdk::lang::sys::BitmapPagedAllocator::~BitmapPagedAllocator  )  [virtual]
 


Member Function Documentation

virtual void* acdk::lang::sys::BitmapPagedAllocator::allocate size_t  size,
AllocatedType  at = RawMem
[inline, 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::BitmapPagedAllocator::deallocate void *  ptr,
AllocatedType  at = RawMem
[inline, virtual]
 

Frees Memory.

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

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

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

Parameters:
flags combination of ListObjectsFlags

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

virtual void* acdk::lang::sys::BitmapPagedAllocator::raw_allocate size_t  size,
AllocatedType  type
[inline, virtual]
 

Parameters:
size is including MemChunkHeader

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

virtual void acdk::lang::sys::BitmapPagedAllocator::raw_deallocate size_t  size,
void *  ptr,
AllocatedType  type
[inline, virtual]
 

Parameters:
size is including MemChunkHeader
ptr is including MemChunkHeader

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


Member Data Documentation

BitmapPage<1024>* acdk::lang::sys::BitmapPagedAllocator::_page1024 [protected]
 

BitmapPage<128>* acdk::lang::sys::BitmapPagedAllocator::_page128 [protected]
 

BitmapPage<2048>* acdk::lang::sys::BitmapPagedAllocator::_page2048 [protected]
 

BitmapPage<32>* acdk::lang::sys::BitmapPagedAllocator::_page32 [protected]
 

BitmapPage<512>* acdk::lang::sys::BitmapPagedAllocator::_page512 [protected]
 

BitmapPage<64>* acdk::lang::sys::BitmapPagedAllocator::_page64 [protected]
 

RawPage* acdk::lang::sys::BitmapPagedAllocator::_rawPagesFirst [protected]
 

RawPage* acdk::lang::sys::BitmapPagedAllocator::_rawPagesLast [protected]