Go to the documentation of this file.
82 #ifndef vtkGarbageCollector_h
83 #define vtkGarbageCollector_h
85 #include "vtkCommonCoreModule.h"
91 void VTKCOMMONCORE_EXPORT
97 class vtkObjectBaseToGarbageCollectorFriendship;
182 static void ClassInitialize();
183 static void ClassFinalize();
186 friend class vtkObjectBaseToGarbageCollectorFriendship;
189 virtual void Report(
vtkObjectBase* obj,
void* ptr,
const char* desc);
190 friend void VTKCOMMONCORE_EXPORT
205 void VTKCOMMONCORE_EXPORT
static vtkGarbageCollector * New()
void VTKCOMMONCORE_EXPORT vtkGarbageCollectorReport(vtkGarbageCollector *collector, vtkSmartPointerBase &ptr, const char *desc)
Function to report a reference held by a smart pointer to a collector.
Non-templated superclass for vtkSmartPointer.
static void Collect()
Collect immediately using any objects whose collection was previously deferred as a root for the refe...
abstract base class for most VTK objects
~vtkGarbageCollector() override
static void SetGlobalDebugFlag(bool flag)
Set/Get global garbage collection debugging flag.
static void DeferredCollectionPop()
static void DeferredCollectionPush()
Push/Pop whether to do deferred collection.
abstract base class for most VTK objects
void VTKCOMMONCORE_EXPORT vtkGarbageCollectorReportInternal(vtkGarbageCollector *, vtkObjectBase *, void *, const char *)
a simple class to control print indentation
static bool GetGlobalDebugFlag()
friend void VTKCOMMONCORE_EXPORT vtkGarbageCollectorReportInternal(vtkGarbageCollector *, vtkObjectBase *, void *, const char *)
Detect and break reference loops.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Manages the vtkGarbageCollector singleton.
static void Collect(vtkObjectBase *root)
Collect immediately using the given object as the root for a reference graph walk.