CMGDK r49-rc2
公有成员 | 保护成员 | 保护属性
hgl::MemManage类参考

内存管理 更多...

#include <MemManage.H>

所有成员的列表。

公有成员

 MemManage ()
virtual ~MemManage ()
virtual void Init ()
virtual void FreeAll ()=0
int GetBlockCount ()
 已分配的内存块数
virtual uint64 GetMemoryTotal ()=0
 已分配内存总量
virtual void PutLog ()=0
 输出日志
void * malloc (int)
void * malloc (int num, int size)
void * realloc (void *, int)
void free (void *)
virtual void * log_malloc (int size, const char *, const char *, const ulong)
virtual void * log_realloc (void *ptr, int size, const char *, const char *, const ulong)
virtual void log_free (void *ptr, const char *, const char *, const ulong)
void * log_malloc (int num, int size, const char *file, const char *func, const ulong line)

保护成员

virtual void * AllocMemory (int)=0
virtual void * ReallocMemory (void *, int)=0
virtual bool FreeMemory (void *)=0

保护属性

uint32 mem_block_count
 块数量

详细描述

内存管理

内存管理器,用于管理内存的使用。


构造及析构函数文档

hgl::MemManage::MemManage ( ) [inline]
virtual hgl::MemManage::~MemManage ( ) [inline, virtual]

成员函数文档

virtual void* hgl::MemManage::AllocMemory ( int  ) [protected, pure virtual]
void hgl::MemManage::free ( void *  )
virtual void hgl::MemManage::FreeAll ( ) [pure virtual]
virtual bool hgl::MemManage::FreeMemory ( void *  ) [protected, pure virtual]
int hgl::MemManage::GetBlockCount ( ) [inline]

已分配的内存块数

virtual uint64 hgl::MemManage::GetMemoryTotal ( ) [pure virtual]

已分配内存总量

virtual void hgl::MemManage::Init ( ) [virtual]
virtual void hgl::MemManage::log_free ( void *  ptr,
const char *  ,
const char *  ,
const ulong   
) [inline, virtual]
void* hgl::MemManage::log_malloc ( int  num,
int  size,
const char *  file,
const char *  func,
const ulong  line 
) [inline]
virtual void* hgl::MemManage::log_malloc ( int  size,
const char *  ,
const char *  ,
const ulong   
) [inline, virtual]
virtual void* hgl::MemManage::log_realloc ( void *  ptr,
int  size,
const char *  ,
const char *  ,
const ulong   
) [inline, virtual]
void* hgl::MemManage::malloc ( int  )
void* hgl::MemManage::malloc ( int  num,
int  size 
) [inline]
virtual void hgl::MemManage::PutLog ( ) [pure virtual]

输出日志

void* hgl::MemManage::realloc ( void *  ,
int   
)
virtual void* hgl::MemManage::ReallocMemory ( void *  ,
int   
) [protected, pure virtual]

成员数据文档

块数量


该类的文档由以下文件生成:
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义