2005/5/9

     
 

class AbstractHeapListener

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

acdk::lang::ref::AbstractHeapListener Class Reference

#include <NotifyObjectEvent.h>

Inheritance diagram for acdk::lang::ref::AbstractHeapListener:

acdk::lang::Object acdk::lang::ref::NotifyObjectEventListener acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Public Member Functions

virtual void notifyBeforeConstruction (Object *obj)
virtual bool notifyBeforeDestruction (Object *obj)
 called if RefCount == 0.

virtual void notifyWhileDestruction (Object *obj)
 called in destructor of given object.

virtual bool listHeaps (IN(::acdk::lang::sys::RHeapFrame) theheap)
 used as callback function to list all heaps of all threads.

virtual bool listedAllocated (IN(::acdk::lang::sys::RHeapFrame) theheap, void *obj,::acdk::lang::sys::AllocatedType type, int size)
 used as callback function, used by::acdk::lang::sys::HeapFrame::listObjects()


Member Function Documentation

virtual bool acdk::lang::ref::AbstractHeapListener::listedAllocated IN(::acdk::lang::sys::RHeapFrame theheap,
void *  obj,
::acdk::lang::sys::AllocatedType  type,
int  size
[inline, virtual]
 

used as callback function, used by::acdk::lang::sys::HeapFrame::listObjects()

Parameters:
thehead the current heap
obj the Object in the heap
Returns:
to abort listing return false

Implements acdk::lang::ref::NotifyObjectEventListener.

virtual bool acdk::lang::ref::AbstractHeapListener::listHeaps IN(::acdk::lang::sys::RHeapFrame theheap  )  [inline, virtual]
 

used as callback function to list all heaps of all threads.

Parameters:
tid ThreadID of the Thread, which owns the Heap
theheap 

Implements acdk::lang::ref::NotifyObjectEventListener.

virtual void acdk::lang::ref::AbstractHeapListener::notifyBeforeConstruction Object obj  )  [inline, virtual]
 

Implements acdk::lang::ref::NotifyObjectEventListener.

virtual bool acdk::lang::ref::AbstractHeapListener::notifyBeforeDestruction Object obj  )  [inline, virtual]
 

called if RefCount == 0.

Returns:
false if object should not be destroyd

Implements acdk::lang::ref::NotifyObjectEventListener.

virtual void acdk::lang::ref::AbstractHeapListener::notifyWhileDestruction Object obj  )  [inline, virtual]
 

called in destructor of given object.

Note virtual function will not work

Implements acdk::lang::ref::NotifyObjectEventListener.