YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::MemoryList类 参考

内存块列表。 更多...

#include <ynew.h>

类 YSLib::MemoryList 继承关系图:
YSLib::MemoryList 的协作图:

struct  BlockInfo
 
exception  NewRecorder
 

Public 类型

typedef std::map< const void
*, BlockInfo, std::less< const
void * >
, __gnu_cxx::malloc_allocator
< std::pair< const void *const,
BlockInfo > > > 
MapType
 
typedef std::list< std::pair
< const void *, BlockInfo >
, __gnu_cxx::malloc_allocator
< std::pair< const void
*, BlockInfo > > > 
ListType
 

Public 成员函数

 MemoryList (void(*)())
 
MapType::size_type GetSize () const ynothrow
 
void Register (const void *, std::size_t, const char *, int)
 
void Unregister (const void *, const char *, int)
 
void PrintAll (std::FILE *)
 
void PrintAllDuplicate (std::FILE *)
 

静态 Public 成员函数

static void Print (const MapType::value_type &, std::FILE *)
 

Public 属性

MapType Blocks
 
ListType DuplicateDeletedBlocks
 

额外继承的成员函数

- Private 成员函数 继承自 ystdex::noncopyable
 noncopyable (const noncopyable &)=delete
 禁止复制构造。
 
noncopyableoperator= (const noncopyable &)=delete
 禁止赋值复制。
 
 noncopyable ()=default
 protected 构造:默认实现。
 
 ~noncopyable ()=default
 protected 析构:默认实现。
 

详细描述

内存块列表。

警告
非虚析构。
自从
build 173

在文件 ynew.h94 行定义.

成员类型定义说明

typedef std::list<std::pair<const void*, BlockInfo>, __gnu_cxx::malloc_allocator<std::pair<const void*, BlockInfo> > > YSLib::MemoryList::ListType

在文件 ynew.h147 行定义.

typedef std::map<const void*, BlockInfo, std::less<const void*>, __gnu_cxx::malloc_allocator<std::pair<const void* const, BlockInfo> > > YSLib::MemoryList::MapType

在文件 ynew.h144 行定义.

构造及析构函数说明

YSLib::MemoryList::MemoryList ( void(*)()  )
explicit

成员函数说明

MapType::size_type YSLib::MemoryList::GetSize ( ) const
inline

在文件 ynew.h155 行定义.

static void YSLib::MemoryList::Print ( const MapType::value_type &  ,
std::FILE *   
)
static
自从
build 317
void YSLib::MemoryList::PrintAll ( std::FILE *  )
void YSLib::MemoryList::PrintAllDuplicate ( std::FILE *  )
void YSLib::MemoryList::Register ( const void *  ,
std::size_t  ,
const char *  ,
int   
)
void YSLib::MemoryList::Unregister ( const void *  ,
const char *  ,
int   
)

类成员变量说明

MapType YSLib::MemoryList::Blocks

在文件 ynew.h149 行定义.

ListType YSLib::MemoryList::DuplicateDeletedBlocks

在文件 ynew.h150 行定义.


该类的文档由以下文件生成: