?? debugall.h
字號:
#ifndef ___DEBUGALL_H___
#define ___DEBUGALL_H___
#include <vector>
#include <string>
#include <map>
#include <iostream>
#include <typeinfo.h>
using namespace std;
class DebugInfo
{
public:
DebugInfo()
:count(0)
{}
string typeName;
int count;
};
static map< string, DebugInfo* > g_DebugInfoVector;
class ObjectBase
{
public:
ObjectBase( const type_info& info )
{
//debug
string name = string( info.name() );
DebugInfo* pInfo = NULL;
pInfo = g_DebugInfoVector[name];
if( pInfo )
pInfo->count++;
else
{
pInfo = new DebugInfo;
pInfo->count = 1;
pInfo->typeName = name;
g_DebugInfoVector.insert( make_pair( name, pInfo ) );
}
}
~ObjectBase()
{
}
};
static
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -