36 #include "vtkCommonMiscModule.h"
39 VTK_ABI_NAMESPACE_BEGIN
52 void* AllocateMemory(
size_t n);
60 virtual void SetBlockSize(
size_t);
68 vtkGetMacro(NumberOfBlocks,
int);
69 vtkGetMacro(NumberOfAllocations,
int);
83 char* StringDup(
const char* str);
89 void Add(
size_t blockSize);
91 vtkHeapBlock* DeleteAndNext();
107 void operator=(
const vtkHeap&) =
delete;
110 VTK_ABI_NAMESPACE_END
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...