2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen $Revision$ from
|
2002-01-21 17:34:42 -05:00
|
|
|
% garbagec.h at 21/Jan/02 21:14:19
|
2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
|
|
|
|
|
|
|
|
\section{\class{GarbageCollector}}\label{garbagecollector}
|
|
|
|
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
This class implements an extremely slow but simple garbage collection algorithm.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
No base class
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
2002-01-31 15:57:31 -05:00
|
|
|
<wx/fl/garbagec.h>
|
2002-01-21 17:34:42 -05:00
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
\wxheading{Data structures}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{GarbageCollector::GarbageCollector}\label{garbagecollectorgarbagecollector}
|
|
|
|
|
|
|
|
\func{}{GarbageCollector}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Default constructor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{GarbageCollector::\destruct{GarbageCollector}}\label{garbagecollectordtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{GarbageCollector}}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Destructor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{GarbageCollector::AddDependency}\label{garbagecollectoradddependency}
|
|
|
|
|
|
|
|
\func{void}{AddDependency}{\param{void* }{pObj}, \param{void* }{pDependsOnObj}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Prepare data for garbage collection.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{GarbageCollector::AddObject}\label{garbagecollectoraddobject}
|
|
|
|
|
|
|
|
\func{void}{AddObject}{\param{void* }{pObj}, \param{int }{refCnt = 1}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Prepare data for garbage collection.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{GarbageCollector::ArrangeCollection}\label{garbagecollectorarrangecollection}
|
|
|
|
|
|
|
|
\func{void}{ArrangeCollection}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Executes garbage collection algorithm.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{GarbageCollector::DestroyItemList}\label{garbagecollectordestroyitemlist}
|
|
|
|
|
|
|
|
\func{void}{DestroyItemList}{\param{wxList\& }{lst}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Destroys a list of items.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{GarbageCollector::FindItemNode}\label{garbagecollectorfinditemnode}
|
|
|
|
|
|
|
|
\func{wxNode*}{FindItemNode}{\param{void* }{pForObj}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Internal method for finding a node.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{GarbageCollector::FindReferenceFreeItemNode}\label{garbagecollectorfindreferencefreeitemnode}
|
|
|
|
|
|
|
|
\func{wxNode*}{FindReferenceFreeItemNode}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Internal method for findind and freeing a node.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{GarbageCollector::GetCycledObjects}\label{garbagecollectorgetcycledobjects}
|
|
|
|
|
|
|
|
\func{wxList\&}{GetCycledObjects}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Get cycled objects.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{GarbageCollector::GetRegularObjects}\label{garbagecollectorgetregularobjects}
|
|
|
|
|
|
|
|
\func{wxList\&}{GetRegularObjects}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Accesses the results of the algorithm.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{GarbageCollector::RemoveReferencesToNode}\label{garbagecollectorremovereferencestonode}
|
|
|
|
|
|
|
|
\func{void}{RemoveReferencesToNode}{\param{wxNode* }{pItemNode}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Remove references to this node.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{GarbageCollector::Reset}\label{garbagecollectorreset}
|
|
|
|
|
|
|
|
\func{void}{Reset}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Removes all data from the garbage collector.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{GarbageCollector::ResolveReferences}\label{garbagecollectorresolvereferences}
|
|
|
|
|
|
|
|
\func{void}{ResolveReferences}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Internal method for resolving references.
|
|
|
|
|