|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::lang::ref::SharedOwning Class Reference#include <SharedOwning.h>
Inheritance diagram for acdk::lang::ref::SharedOwning:
List of all members.
Detailed Description
Implements mechanism for small garbage collection for local shared owning.
|
Public Types |
typedef acdk::lang::sys::core_vector<
SharedOwned > | SharedOwnedVec |
Public Member Functions |
| SharedOwning () |
virtual | ~SharedOwning () |
void | registerSharedObject (Object *obj, RObject *refedBy, bool isMaster) |
void | unregisterSharedObject (Object *obj, RObject *refedBy, bool onDelete) |
void | registerSharedObjectRefs (RObject *masterRef, RObject *slaveRef) |
void | unregisterSharedObjectRefs (RObject *masterRef, RObject *slaveRef, bool onDelete=false) |
void | unregisterAll () |
Public Attributes |
SharedOwnedVec | _sharedElements |
Protected Member Functions |
virtual void | notifyBeforeConstruction (Object *obj) |
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()
|
virtual bool | notifyBeforeDestruction (Object *obj) |
| called if RefCount == 0.
|
void | setMaster (SharedOwned &shown, bool isMaster) |
bool | isNowMaster (SharedOwned &toDel, SharedOwned &el, SharedOwned &oldMaster) |
SharedOwned & | getMaster () |
SharedOwned & | getElement (Object *obj) |
bool | canRelease (Object *obj) |
void | removeElement (Object *obj) |
void | dump (const char *msg=) |
Static Protected Member Functions |
SharedOwned & | _getEmtpySharedOwned () |
Member Typedef Documentation
Constructor & Destructor Documentation
acdk::lang::ref::SharedOwning::SharedOwning |
( |
|
) |
[inline] |
|
virtual acdk::lang::ref::SharedOwning::~SharedOwning |
( |
|
) |
[virtual] |
|
Member Function Documentation
SharedOwned& acdk::lang::ref::SharedOwning::_getEmtpySharedOwned |
( |
|
) |
[static, protected] |
|
bool acdk::lang::ref::SharedOwning::canRelease |
( |
Object * |
obj |
) |
[protected] |
|
void acdk::lang::ref::SharedOwning::dump |
( |
const char * |
msg = |
) |
[protected] |
|
SharedOwned& acdk::lang::ref::SharedOwning::getMaster |
( |
|
) |
[protected] |
|
virtual void acdk::lang::ref::SharedOwning::notifyBeforeConstruction |
( |
Object * |
obj |
) |
[inline, protected, virtual] |
|
virtual bool acdk::lang::ref::SharedOwning::notifyBeforeDestruction |
( |
Object * |
obj |
) |
[inline, protected, virtual] |
|
virtual void acdk::lang::ref::SharedOwning::notifyWhileDestruction |
( |
Object * |
obj |
) |
[inline, protected, virtual] |
|
void acdk::lang::ref::SharedOwning::registerSharedObject |
( |
Object * |
obj, |
|
|
RObject * |
refedBy, |
|
|
bool |
isMaster |
|
) |
|
|
void acdk::lang::ref::SharedOwning::registerSharedObjectRefs |
( |
RObject * |
masterRef, |
|
|
RObject * |
slaveRef |
|
) |
|
|
void acdk::lang::ref::SharedOwning::removeElement |
( |
Object * |
obj |
) |
[protected] |
|
void acdk::lang::ref::SharedOwning::setMaster |
( |
SharedOwned & |
shown, |
|
|
bool |
isMaster |
|
) |
[protected] |
|
void acdk::lang::ref::SharedOwning::unregisterAll |
( |
|
) |
|
|
void acdk::lang::ref::SharedOwning::unregisterSharedObject |
( |
Object * |
obj, |
|
|
RObject * |
refedBy, |
|
|
bool |
onDelete |
|
) |
|
|
void acdk::lang::ref::SharedOwning::unregisterSharedObjectRefs |
( |
RObject * |
masterRef, |
|
|
RObject * |
slaveRef, |
|
|
bool |
onDelete = false |
|
) |
|
|
Member Data Documentation
|
|