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

存储调试设施。 更多...

#include "config.h"
#include <ydef.h>
#include "../Core/ybasemac.h"
#include <new>
#include <string>
#include <list>
#include <map>
#include <cstdio>
#include <ext/malloc_allocator.h>
#include <ystdex/utility.hpp>
ynew.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  YSLib::MemoryList
 内存块列表。 更多...
 
struct  YSLib::MemoryList::BlockInfo
 
exception  YSLib::MemoryList::NewRecorder
 

命名空间

namespace  YSLib
 

宏定义

#define ynew   YSLib::MemoryList::NewRecorder(__FILE__, __LINE__)->*new
 
#define ynew_nothrow   new(std::nothrow, __FILE__, __LINE__)
 
#define ydelete(p)
 
#define ydelete_array(p)
 

函数

YF_API MemoryList & YSLib::GetDebugMemoryList ()
 取调试用内存块列表。
 

详细描述

存储调试设施。

版本
r1152
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 173
创建时间:
2010-12-02 19:49:40 +0800
修改时间:
2013-01-10 16:57 +0800
文本编码:
UTF-8
模块名称:
YSLib::Adaptor::YNew

在文件 ynew.h 中定义.

宏定义说明

#define ydelete (   p)
值:
(GetDebugMemoryList().Unregister(p, __FILE__, \
__LINE__), delete p)

在文件 ynew.h185 行定义.

参考自 YSLib::delete_obj_debug::operator()(),YSLib::delete_second_mem_debug::operator()() , 以及 YSLib::reset().

#define ynew_nothrow   new(std::nothrow, __FILE__, __LINE__)

在文件 ynew.h184 行定义.