36#include "vtkCommonMiscModule.h"
39VTK_ABI_NAMESPACE_BEGIN
68 vtkGetMacro(NumberOfBlocks,
int);
69 vtkGetMacro(NumberOfAllocations,
int);
89 void Add(
size_t blockSize);
107 void operator=(
const vtkHeap&) =
delete;
replacement for malloc/free and new/delete
void Reset()
This methods resets the current allocation location back to the beginning of the heap.
virtual void SetBlockSize(size_t)
Set/Get the size at which blocks are allocated.
char * StringDup(const char *str)
Convenience method performs string duplication.
vtkHeapBlock * DeleteAndNext()
void Add(size_t blockSize)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void * AllocateMemory(size_t n)
Allocate the memory requested.
virtual size_t GetBlockSize()
Set/Get the size at which blocks are allocated.
a simple class to control print indentation
abstract base class for most VTK objects