68 const MemoryTracer& GetMemoryTracer()
const {
return mt; }
70 void StartMemoryTracing()
const
72 mt.Alloc(bablocks.Size() * size * blocks);
76 NGS_DLL_HEADER
void * Alloc2 ();
Datatype for automatic differentiation.
Definition autodiff.hpp:26
Optimized memory handler.
Definition blockalloc.hpp:21
NGS_DLL_HEADER BlockAllocator(unsigned int asize, unsigned int ablocks=100)
Create BlockAllocator for elements of size asize.
NGS_DLL_HEADER void * Alloc()
Return pointer to new element.
int NumElements()
number of allocated elements
Definition blockalloc.hpp:64
NGS_DLL_HEADER ~BlockAllocator()
Delete all memeory.
NGS_DLL_HEADER void Free(void *p)
Send memory to free-list.
namespace for standard data types and algorithms.
Definition ngstd.hpp:42