48#include "vtkCommonMiscModule.h"
79 vtkGetMacro(NumberOfBlocks,
int);
80 vtkGetMacro(NumberOfAllocations,
int);
100 void Add(
size_t blockSize);
118 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