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