TC::Heap Class Reference
[Debug Support Classes]

Heap interface definition. More...

#include <TCHeap.h>

Inheritance diagram for TC::Heap:

Inheritance graph
[legend]
Collaboration diagram for TC::Heap:

Collaboration graph
[legend]

List of all members.

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 ()


Detailed Description

Heap interface definition.

Definition at line 57 of file TCHeap.h.


Constructor & Destructor Documentation

virtual TC::Heap::~Heap (  )  [inline, virtual]

Definition at line 96 of file TCHeap.h.


Member Function Documentation

virtual void* TC::Heap::Alloc ( uint32  size  )  [pure virtual]

Allocate a block of size bytes.

Returns:
The address of the block on success; 0 on failure

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.

Returns:
The address of the block on success; 0 on failure

virtual void* TC::Heap::ReAlloc ( void *  ptr,
uint32  size 
) [pure virtual]

ReAllocate a block of size bytes.

Returns:
The address of the block on success; 0 on failure

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.

Returns:
The address of the block on success; 0 on failure

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.

Returns:
truen if memory is from this heap


The documentation for this class was generated from the following file:

Copyright (c) Thomas Goessler 2003 - 2008