82 #ifndef vtkGarbageCollector_h
83 #define vtkGarbageCollector_h
85 #include "vtkCommonCoreModule.h"
91 void VTKCOMMONCORE_EXPORT
97 class vtkObjectBaseToGarbageCollectorFriendship;
118 static void Collect();
140 static void DeferredCollectionPush();
141 static void DeferredCollectionPop();
149 static void SetGlobalDebugFlag(
bool flag);
150 static bool GetGlobalDebugFlag();
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
196 vtkGarbageCollector(const vtkGarbageCollector&) VTK_DELETE_FUNCTION;
197 void operator=(const vtkGarbageCollector&) VTK_DELETE_FUNCTION;
205 void VTKCOMMONCORE_EXPORT
207 vtkSmartPointerBase& ptr,
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Detect and break reference loops.
a simple class to control print indentation
Manages the vtkGarbageCollector singleton.
abstract base class for most VTK objects
Non-templated superclass for vtkSmartPointer.
void VTKCOMMONCORE_EXPORT vtkGarbageCollectorReportInternal(vtkGarbageCollector *, vtkObjectBase *, void *, const char *)
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void VTKCOMMONCORE_EXPORT vtkGarbageCollectorReport(vtkGarbageCollector *collector, vtkSmartPointerBase &ptr, const char *desc)
Function to report a reference held by a smart pointer to a collector.