A memory allocator that allocates from a heap.
More...
#include <csutil/memheap.h>
List of all members.
Public Member Functions |
| void * | Alloc (const size_t n) |
| | Allocate a block of memory of size n.
|
| void | Free (void *p) |
| | Free the block p.
|
| void * | Realloc (void *p, size_t newSize) |
| | Resize the allocated block p to size newSize.
|
| void | SetMemTrackerInfo (const char *info) |
| | Set the information used for memory tracking.
|
Detailed Description
template<class HeapAccess>
class CS::Memory::AllocatorHeapBase< HeapAccess >
A memory allocator that allocates from a heap.
The HeapAccess template argument must behave like the Heap class.
- See also:
- HeapAccessPointer
Definition at line 84 of file memheap.h.
Member Function Documentation
template<class HeapAccess>
Allocate a block of memory of size n.
Definition at line 98 of file memheap.h.
template<class HeapAccess>
template<class HeapAccess>
Resize the allocated block p to size newSize.
Definition at line 123 of file memheap.h.
template<class HeapAccess>
Set the information used for memory tracking.
Definition at line 135 of file memheap.h.
The documentation for this class was generated from the following file: