43 #ifndef vtkObjectBase_h 44 #define vtkObjectBase_h 49 #define VTK_HAS_INITIALIZE_OBJECT_BASE 51 #include "vtkCommonCoreModule.h" 59 class vtkGarbageCollectorToObjectBaseFriendship;
61 class vtkWeakPointerBaseToObjectBaseFriendship;
70 virtual const char* GetClassNameInternal()
const {
return "vtkObjectBase"; }
73 #ifdef VTK_WORKAROUND_WINDOWS_MANGLE 75 #define GetClassNameA GetClassName 76 #define GetClassNameW GetClassName 82 const char* GetClassName()
const;
84 #ifdef VTK_WORKAROUND_WINDOWS_MANGLE 89 const char* GetClassNameA()
const;
90 const char* GetClassNameW()
const;
116 static vtkIdType GetNumberOfGenerationsFromBaseType(
const char*
name);
126 virtual vtkIdType GetNumberOfGenerationsFromBase(
const char*
name);
133 virtual void Delete();
142 virtual void FastDelete();
157 void InitializeObjectBase();
161 void*
operator new(
size_t tSize);
162 void operator delete(
void* p);
169 void Print(ostream& os);
178 virtual void PrintSelf(ostream& os,
vtkIndent indent);
179 virtual void PrintHeader(ostream& os,
vtkIndent indent);
180 virtual void PrintTrailer(ostream& os,
vtkIndent indent);
203 void SetReferenceCount(
int);
208 #ifndef VTK_LEGACY_REMOVE 216 #ifndef VTK_LEGACY_REMOVE 234 friend class vtkGarbageCollectorToObjectBaseFriendship;
235 friend class vtkWeakPointerBaseToObjectBaseFriendship;
void InitializeObjectBase()
static vtkObjectBase * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void Print(const std::vector< T > &input, const std::string &name)
Print a vector with an associated name.
vtkObjectBase(const vtkObjectBase &)
void PrintRevisions(ostream &)
Legacy.
int GetReferenceCount()
Return the current reference count of this object.
Detect and break reference loops.
a simple class to control print indentation
Non-templated superclass for vtkWeakPointer.
abstract base class for most VTK objects
virtual void CollectRevisions(ostream &)
std::atomic< int32_t > ReferenceCount
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
vtkWeakPointerBase ** WeakPointers
void operator=(const vtkObjectBase &)