47 #include "vtkCommonMiscModule.h"
48 #include "vtkObject.h"
52 class VTKCOMMONMISC_EXPORT
vtkHeap :
public vtkObject
57 void PrintSelf(ostream& os, vtkIndent indent);
60 void* AllocateMemory(
size_t n);
65 virtual void SetBlockSize(
size_t);
71 vtkGetMacro(NumberOfBlocks,
int);
72 vtkGetMacro(NumberOfAllocations,
int);
81 char* StringDup(
const char* str);
87 void Add(
size_t blockSize);
89 vtkHeapBlock* DeleteAndNext();
105 void operator=(
const vtkHeap&);
virtual size_t GetBlockSize()
replacement for malloc/free and new/delete