ConOpSys V2970  P004.07
ANVILEX control operating system
Classes | Macros | Functions | Variables
Memory_Manager.h File Reference
#include <StdLib.h>
#include "Defines.h"
Include dependency graph for Memory_Manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TAllocatedSegment
 
struct  TMemoryStatistics
 
class  TMemoryManager
 

Macros

#define new   new
 
#define delete   delete
 
#define malloc(sz)   MemoryManager.allocMemory( (U32)sz, false )
 
#define free(ptr)   MemoryManager.dllocMemory( ptr )
 
#define realloc(ptr, sz)   MemoryManager.rllocMemory( ptr, (U32)sz )
 
#define calloc(cnt, sz)   MemoryManager.allocMemory( (U32)cnt * (U32)sz, true )
 

Functions

VOIDoperator new (size_t count)
 
VOIDoperator new[] (size_t count)
 
VOID operator delete (VOID *void_Pointer_To_Memory)
 
VOID operator delete[] (VOID *void_Pointer_To_Memory)
 

Variables

TMemoryManager MemoryManager
 

Macro Definition Documentation

◆ calloc

#define calloc (   cnt,
  sz 
)    MemoryManager.allocMemory( (U32)cnt * (U32)sz, true )

◆ delete

#define delete   delete

◆ free

#define free (   ptr)    MemoryManager.dllocMemory( ptr )

◆ malloc

#define malloc (   sz)    MemoryManager.allocMemory( (U32)sz, false )

◆ new

#define new   new

◆ realloc

#define realloc (   ptr,
  sz 
)    MemoryManager.rllocMemory( ptr, (U32)sz )

Function Documentation

◆ operator delete()

VOID operator delete ( VOID void_Pointer_To_Memory)
inline

References TMemoryManager::dllocMemory(), and MemoryManager.

Here is the call graph for this function:

◆ operator delete[]()

VOID operator delete[] ( VOID void_Pointer_To_Memory)
inline

References TMemoryManager::dllocMemory(), and MemoryManager.

Here is the call graph for this function:

◆ operator new()

VOID* operator new ( size_t  count)
inline

References TMemoryManager::allocMemory(), false, and MemoryManager.

Here is the call graph for this function:

◆ operator new[]()

VOID* operator new[] ( size_t  count)
inline

References TMemoryManager::allocMemory(), false, and MemoryManager.

Here is the call graph for this function:

Variable Documentation

◆ MemoryManager

TMemoryManager MemoryManager
extern