2005/5/9

     
 

class NotifyObjectEventListener

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

acdk::lang::ref::NotifyObjectEventListener Class Reference

#include <NotifyObjectEvent.h>

Inheritance diagram for acdk::lang::ref::NotifyObjectEventListener:

acdk::lang::ref::AbstractHeapListener acdk::lang::ref::Reference acdk::lang::ref::SharedOwning acdk::lang::sys::LocalGcHeap tests::acdk::lang::dmi::SharedOwned acdk::lang::ref::PhantomReference acdk::lang::ref::SoftReference acdk::lang::ref::WeakReference acdk::util::WeakHashMapKey List of all members.

Detailed Description

Abstract class for ObjectEvents API: Internal.

Author:
Roger Rene Kommer
Version:
Revision
1.16
Date:
Date
2005/02/05 10:44:59
See also:
NotifyRepository


Public Member Functions

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

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

virtual bool listHeaps (IN(::acdk::lang::sys::RHeapFrame) theheap)=0
 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)=0
 used as callback function, used by::acdk::lang::sys::HeapFrame::listObjects()


Member Function Documentation

virtual bool acdk::lang::ref::NotifyObjectEventListener::listedAllocated IN(::acdk::lang::sys::RHeapFrame theheap,
void *  obj,
::acdk::lang::sys::AllocatedType  type,
int  size
[pure 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

Implemented in acdk::lang::ref::AbstractHeapListener, acdk::lang::ref::Reference, acdk::lang::ref::SharedOwning, acdk::lang::sys::LocalGcHeap, and tests::acdk::lang::dmi::SharedOwned.

virtual bool acdk::lang::ref::NotifyObjectEventListener::listHeaps IN(::acdk::lang::sys::RHeapFrame theheap  )  [pure virtual]
 

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

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

Implemented in acdk::lang::ref::AbstractHeapListener, acdk::lang::ref::Reference, acdk::lang::ref::SharedOwning, acdk::lang::sys::LocalGcHeap, and tests::acdk::lang::dmi::SharedOwned.

virtual void acdk::lang::ref::NotifyObjectEventListener::notifyBeforeConstruction Object obj  )  [pure virtual]
 

Implemented in acdk::lang::ref::AbstractHeapListener, acdk::lang::ref::Reference, acdk::lang::ref::SharedOwning, acdk::lang::sys::LocalGcHeap, and tests::acdk::lang::dmi::SharedOwned.

virtual bool acdk::lang::ref::NotifyObjectEventListener::notifyBeforeDestruction Object obj  )  [pure virtual]
 

called if RefCount == 0.

Returns:
false if object should not be destroyd

Implemented in acdk::lang::ref::AbstractHeapListener, acdk::lang::ref::PhantomReference, acdk::lang::ref::Reference, acdk::lang::ref::SharedOwning, acdk::lang::ref::SoftReference, acdk::lang::ref::WeakReference, acdk::lang::sys::LocalGcHeap, and tests::acdk::lang::dmi::SharedOwned.

virtual void acdk::lang::ref::NotifyObjectEventListener::notifyWhileDestruction Object obj  )  [pure virtual]
 

called in destructor of given object.

Note virtual function will not work

Implemented in acdk::lang::ref::AbstractHeapListener, acdk::lang::ref::Reference, acdk::lang::ref::SharedOwning, acdk::lang::sys::LocalGcHeap, and tests::acdk::lang::dmi::SharedOwned.