#include <TCHeap.h>


Public Member Functions | |
| virtual void * | Alloc (uint32 size)=0 |
| Allocate a block of size bytes. | |
| virtual void * | Alloc (uint32 size, const char *file_name, uint32 line_numer)=0 |
| Allocate a block of size bytes If The heap supports memory leak detection it should store for each allocation file name and line number. | |
| virtual void * | ReAlloc (void *ptr, uint32 size)=0 |
| ReAllocate a block of size bytes. | |
| virtual void * | ReAlloc (void *ptr, uint32 size, const char *file_name, uint32 line_numer)=0 |
| ReAllocate a block of size bytes If The heap supports memory leak detection it should store for each allocation file name and line number. | |
| virtual void | Free (void *memory)=0 |
| Free an allocated block The pointer is only freed if it belongs to this heap. | |
| virtual bool | IsAHeapPointer (void *memory)=0 |
| Check if this memory pointer is from this heap. | |
| virtual | ~Heap () |
Definition at line 57 of file TCHeap.h.
| virtual void* TC::Heap::Alloc | ( | uint32 | size | ) | [pure virtual] |
Allocate a block of size bytes.
| virtual void* TC::Heap::Alloc | ( | uint32 | size, | |
| const char * | file_name, | |||
| uint32 | line_numer | |||
| ) | [pure virtual] |
Allocate a block of size bytes If The heap supports memory leak detection it should store for each allocation file name and line number.
| virtual void* TC::Heap::ReAlloc | ( | void * | ptr, | |
| uint32 | size | |||
| ) | [pure virtual] |
ReAllocate a block of size bytes.
| virtual void* TC::Heap::ReAlloc | ( | void * | ptr, | |
| uint32 | size, | |||
| const char * | file_name, | |||
| uint32 | line_numer | |||
| ) | [pure virtual] |
ReAllocate a block of size bytes If The heap supports memory leak detection it should store for each allocation file name and line number.
| virtual void TC::Heap::Free | ( | void * | memory | ) | [pure virtual] |
Free an allocated block The pointer is only freed if it belongs to this heap.
| virtual bool TC::Heap::IsAHeapPointer | ( | void * | memory | ) | [pure virtual] |
Check if this memory pointer is from this heap.