Contents Up Previous Next

GarbageCollector

This class implements an extremely slow but simple garbage collection algorithm.

Derived from

No base class

Include files

<wx/fl/garbagec.h>

Data structures

Members

GarbageCollector::GarbageCollector
GarbageCollector::~GarbageCollector
GarbageCollector::AddDependency
GarbageCollector::AddObject
GarbageCollector::ArrangeCollection
GarbageCollector::DestroyItemList
GarbageCollector::FindItemNode
GarbageCollector::FindReferenceFreeItemNode
GarbageCollector::GetCycledObjects
GarbageCollector::GetRegularObjects
GarbageCollector::RemoveReferencesToNode
GarbageCollector::Reset
GarbageCollector::ResolveReferences


GarbageCollector::GarbageCollector

GarbageCollector()

Default constructor.


GarbageCollector::~GarbageCollector

~GarbageCollector()

Destructor.


GarbageCollector::AddDependency

void AddDependency(void* pObj, void* pDependsOnObj)

Prepare data for garbage collection.


GarbageCollector::AddObject

void AddObject(void* pObj, int refCnt = 1)

Prepare data for garbage collection.


GarbageCollector::ArrangeCollection

void ArrangeCollection()

Executes garbage collection algorithm.


GarbageCollector::DestroyItemList

void DestroyItemList(wxList& lst)

Destroys a list of items.


GarbageCollector::FindItemNode

wxNode* FindItemNode(void* pForObj)

Internal method for finding a node.


GarbageCollector::FindReferenceFreeItemNode

wxNode* FindReferenceFreeItemNode()

Internal method for findind and freeing a node.


GarbageCollector::GetCycledObjects

wxList& GetCycledObjects()

Get cycled objects.


GarbageCollector::GetRegularObjects

wxList& GetRegularObjects()

Accesses the results of the algorithm.


GarbageCollector::RemoveReferencesToNode

void RemoveReferencesToNode(wxNode* pItemNode)

Remove references to this node.


GarbageCollector::Reset

void Reset()

Removes all data from the garbage collector.


GarbageCollector::ResolveReferences

void ResolveReferences()

Internal method for resolving references.