SYS_Memory Class Reference

#include <SYS_Memory.h>

List of all members.

Static Public Member Functions

static void * Malloc (SYS_MemoryTable &table, int which_entry, size_t amount)
static void * Calloc (SYS_MemoryTable &table, int which_entry, size_t amount)
static void * Realloc (SYS_MemoryTable &table, int which_entry, void *original_memory, size_t old_amount, size_t new_amount)
static void Free (SYS_MemoryTable &table, int which_entry, void *memory, size_t amount)
static void acquire (SYS_MemoryTable &table, int which_entry, size_t amount)
 Track a memory acquisition that wasn't performed by this class.
static void release (SYS_MemoryTable &table, int which_entry, size_t amount)
 Track a memory free that wasn't performed by this class.


Detailed Description

Definition at line 135 of file SYS_Memory.h.


Member Function Documentation

static void SYS_Memory::acquire ( SYS_MemoryTable table,
int  which_entry,
size_t  amount 
) [inline, static]

Track a memory acquisition that wasn't performed by this class.

Definition at line 223 of file SYS_Memory.h.

static void* SYS_Memory::Calloc ( SYS_MemoryTable table,
int  which_entry,
size_t  amount 
) [inline, static]

Allocate memory and track the usage. The memory will filled with zero. This method will return a null pointer if the size requested is equal to 0.

Definition at line 154 of file SYS_Memory.h.

static void SYS_Memory::Free ( SYS_MemoryTable table,
int  which_entry,
void *  memory,
size_t  amount 
) [inline, static]

Free an allocated block (tracking the memory usage). If a null pointer is passed in, no tracking will be done. Thus, it's safe to pass in a non-zero size without a valid pointer (and not destroy the tracking process).

Definition at line 210 of file SYS_Memory.h.

static void* SYS_Memory::Malloc ( SYS_MemoryTable table,
int  which_entry,
size_t  amount 
) [inline, static]

Allocate memory and track the usage. This method will return a null pointer if the size requested is equal to 0.

Definition at line 140 of file SYS_Memory.h.

static void* SYS_Memory::Realloc ( SYS_MemoryTable table,
int  which_entry,
void *  original_memory,
size_t  old_amount,
size_t  new_amount 
) [inline, static]

Re-allocate a previously allocated block. This method handles the case where the initial block has not been allocated (i.e. is a null pointer). This method will return a null pointer if the new_amount size requested is equal to 0.

Definition at line 170 of file SYS_Memory.h.

static void SYS_Memory::release ( SYS_MemoryTable table,
int  which_entry,
size_t  amount 
) [inline, static]

Track a memory free that wasn't performed by this class.

Definition at line 230 of file SYS_Memory.h.


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

Generated on Fri May 25 00:10:42 2012 for HDK by  doxygen 1.5.9