48 #include "vtkCommonMiscModule.h"
63 void* AllocateMemory(
size_t n);
71 virtual void SetBlockSize(
size_t);
79 vtkGetMacro(NumberOfBlocks,
int);
80 vtkGetMacro(NumberOfAllocations,
int);
94 char* StringDup(
const char* str);
100 void Add(
size_t blockSize);
102 vtkHeapBlock* DeleteAndNext();
105 int NumberOfAllocations;
112 vtkHeapBlock* Current;
118 void operator=(const
vtkHeap&) VTK_DELETE_FUNCTION;
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.
a simple class to control print indentation
virtual size_t GetBlockSize()
Set/Get the size at which blocks are allocated.
replacement for malloc/free and new/delete
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...