2005/5/9

     
 

class SharedOwned

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

tests::acdk::lang::dmi::SharedOwned Class Reference

Inheritance diagram for tests::acdk::lang::dmi::SharedOwned:

acdk::lang::ref::NotifyObjectEventListener List of all members.

Public Types

typedef std::map< acdk::lang::Object *,
SharedOwnedValue
SharedMap

Public Member Functions

 SharedOwned ()
SharedOwnedValuegetCreate (acdk::lang::Object *obj)
void removeShared (acdk::lang::Object *obj)
bool canRelease (acdk::lang::Object *o)
void checkBalance (acdk::lang::Object *o)
SharedOwnedValueget (acdk::lang::Object *o)
int getMasterRefs (acdk::lang::Object *o)
int incMasterRef (acdk::lang::Object *o)
int decrMasterRef (acdk::lang::Object *o)
int getStrongRefs (acdk::lang::Object *o)
int incStrongRef (acdk::lang::Object *o)
int decrStrongRef (acdk::lang::Object *o)
virtual void getCollectableFields (FieldReferences &fields)
void dumpRelations (ReferedMap &refMap, acdk::lang::Object *o)

Public Attributes

SharedMap _map

Protected Member Functions

bool balance (ReferedMap &refMap, acdk::lang::Object *releaseObject)
int getClusterRefCounts (ReferedMap &refMap, int &refC, int &inRefC)
 return masterRefC

bool isMaster (ReferedMap &refMap, acdk::lang::Object *o)
void onDelete (ReferedMap &refMap, acdk::lang::Object *o)
int getMasterRefCountOfCluster (ReferedMap &refMap)
virtual void notifyBeforeConstruction (acdk::lang::Object *obj)
virtual void notifyWhileDestruction (acdk::lang::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()

virtual bool notifyBeforeDestruction (acdk::lang::Object *obj)
 called if RefCount == 0.


Member Typedef Documentation

typedef std::map<acdk::lang::Object*, SharedOwnedValue> tests::acdk::lang::dmi::SharedOwned::SharedMap
 


Constructor & Destructor Documentation

tests::acdk::lang::dmi::SharedOwned::SharedOwned  )  [inline]
 


Member Function Documentation

bool tests::acdk::lang::dmi::SharedOwned::balance ReferedMap refMap,
acdk::lang::Object releaseObject
[protected]
 

bool tests::acdk::lang::dmi::SharedOwned::canRelease acdk::lang::Object o  ) 
 

void tests::acdk::lang::dmi::SharedOwned::checkBalance acdk::lang::Object o  ) 
 

int tests::acdk::lang::dmi::SharedOwned::decrMasterRef acdk::lang::Object o  )  [inline]
 

int tests::acdk::lang::dmi::SharedOwned::decrStrongRef acdk::lang::Object o  )  [inline]
 

void tests::acdk::lang::dmi::SharedOwned::dumpRelations ReferedMap refMap,
acdk::lang::Object o
 

SharedOwnedValue* tests::acdk::lang::dmi::SharedOwned::get acdk::lang::Object o  )  [inline]
 

int tests::acdk::lang::dmi::SharedOwned::getClusterRefCounts ReferedMap refMap,
int &  refC,
int &  inRefC
[protected]
 

return masterRefC

virtual void tests::acdk::lang::dmi::SharedOwned::getCollectableFields FieldReferences fields  )  [inline, virtual]
 

SharedOwnedValue* tests::acdk::lang::dmi::SharedOwned::getCreate acdk::lang::Object obj  )  [inline]
 

int tests::acdk::lang::dmi::SharedOwned::getMasterRefCountOfCluster ReferedMap refMap  )  [protected]
 

int tests::acdk::lang::dmi::SharedOwned::getMasterRefs acdk::lang::Object o  )  [inline]
 

int tests::acdk::lang::dmi::SharedOwned::getStrongRefs acdk::lang::Object o  )  [inline]
 

int tests::acdk::lang::dmi::SharedOwned::incMasterRef acdk::lang::Object o  )  [inline]
 

int tests::acdk::lang::dmi::SharedOwned::incStrongRef acdk::lang::Object o  )  [inline]
 

bool tests::acdk::lang::dmi::SharedOwned::isMaster ReferedMap refMap,
acdk::lang::Object o
[protected]
 

virtual bool tests::acdk::lang::dmi::SharedOwned::listedAllocated IN(::acdk::lang::sys::RHeapFrame theheap,
void *  obj,
::acdk::lang::sys::AllocatedType  type,
int  size
[inline, protected, virtual]
 

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

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

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

virtual bool tests::acdk::lang::dmi::SharedOwned::listHeaps IN(::acdk::lang::sys::RHeapFrame theheap  )  [inline, protected, 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 tests::acdk::lang::dmi::SharedOwned::notifyBeforeConstruction acdk::lang::Object obj  )  [inline, protected, virtual]
 

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

virtual bool tests::acdk::lang::dmi::SharedOwned::notifyBeforeDestruction acdk::lang::Object obj  )  [inline, protected, virtual]
 

called if RefCount == 0.

Returns:
false if object should not be destroyd

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

virtual void tests::acdk::lang::dmi::SharedOwned::notifyWhileDestruction acdk::lang::Object obj  )  [inline, protected, virtual]
 

called in destructor of given object.

Note virtual function will not work

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

void tests::acdk::lang::dmi::SharedOwned::onDelete ReferedMap refMap,
acdk::lang::Object o
[protected]
 

void tests::acdk::lang::dmi::SharedOwned::removeShared acdk::lang::Object obj  )  [inline]
 


Member Data Documentation

SharedMap tests::acdk::lang::dmi::SharedOwned::_map