Tianchi  v0.0.2 build 20130701
C++ library for Qt with VC & mingW
Public 成员函数 | 所有成员列表
TcSingleton< T > 模板类 参考

用指针实现的单例模式的模版类 更多...

#include <tcsingleton.hpp>

Public 成员函数

 TcSingleton ()
 构造函数
 
 TcSingleton (const this_type &)
 构造函数
 
 ~TcSingleton ()
 析构函数
 
T * get () const
 返回 T *
 
const T & operator* () const
 operator *
 
T * operator-> () const
 operator ->
 
this_typeoperator= (const this_type &)
 operator =
 

详细描述

template<typename T>
class TcSingleton< T >

用指针实现的单例模式的模版类

作者
cnhem.nosp@m.iya@.nosp@m.gmail.nosp@m..com
日期
2013-05-25
示例:
.h文件
class demo
{
public:
int value;
}
typedef TcSingleton<demo> demo_singleton;
.cpp文件
初始化宏

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