#include <LocalGcHeap.h>
Inheritance diagram for acdk::lang::sys::LocalGcHeap:
Public Types | |
typedef std::map< Object *, SharedOwnedValue > | ObjectMap |
Public Member Functions | |
virtual Allocator * | allocator () |
returns the Allocator of this Object. | |
virtual void | listObjects (::acdk::lang::ref::NotifyObjectEventListener *listener, int flags) |
virtual bool | gc (bool recursiv=true) |
LocalGcHeap () | |
void | addObject (Object *o, RObject *referedFrom=0) |
void | eraseFromSet (Object *o) |
remove this object from this heap | |
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. | |
Static Public Member Functions | |
bool | gcObject (Object *obj, RObject *referedFrom=0) |
check if this object can be gced | |
Public Attributes | |
ObjectMap | _objects |
|
|
|
|
|
|
|
returns the Allocator of this Object. By default it returns the StandardHeapAllocator Reimplemented from acdk::lang::ObjectBase. |
|
remove this object from this heap
|
|
|
|
check if this object can be gced
|
|
used as callback function, used by::acdk::lang::sys::HeapFrame::listObjects()
Implements acdk::lang::ref::NotifyObjectEventListener. |
|
used as callback function to list all heaps of all threads.
Implements acdk::lang::ref::NotifyObjectEventListener. |
|
|
|
Implements acdk::lang::ref::NotifyObjectEventListener. |
|
called if RefCount == 0.
Implements acdk::lang::ref::NotifyObjectEventListener. |
|
called in destructor of given object. Note virtual function will not work Implements acdk::lang::ref::NotifyObjectEventListener. |
|
|