2005/5/9

     
 

class TracedRawAllocator

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

acdk::lang::sys::TracedRawAllocator Class Reference

#include <TracedRawAllocator.h>

Inheritance diagram for acdk::lang::sys::TracedRawAllocator:

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

Public Types

typedef std::map< void *,
TracedRawAllocatorInfo
ObjectsSet

Public Member Functions

 TracedRawAllocator ()
virtual void * raw_allocate (size_t size, AllocatedType type)
virtual void raw_deallocate (size_t size, void *ptr, AllocatedType type)
virtual void * allocate (size_t size, AllocatedType at=RawMem)
 Allocates Memory.

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

virtual void listObjects (::acdk::lang::ref::NotifyObjectEventListener *listener, int flags)

Public Attributes

ObjectsSet _heap

Member Typedef Documentation

typedef std::map<void*, TracedRawAllocatorInfo> acdk::lang::sys::TracedRawAllocator::ObjectsSet
 


Constructor & Destructor Documentation

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


Member Function Documentation

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

Frees Memory.

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

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

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

Parameters:
flags combination of ListObjectsFlags

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

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

Parameters:
size is including MemChunkHeader

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

virtual void acdk::lang::sys::TracedRawAllocator::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

ObjectsSet acdk::lang::sys::TracedRawAllocator::_heap