YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::GMCounter< _type, count_t > 模板类 参考

模板类实例计数器。 更多...

#include <ycounter.hpp>

YSLib::GMCounter< _type, count_t > 的协作图:

Public 成员函数

 GMCounter () ynothrow
 构造。
 
 GMCounter (const GMCounter &) ynothrow
 复制构造。
 
 GMCounter (GMCounter &&)=default
 转移构造。
 
yconstfn count_t GetObjectID () const ynothrow
 

静态 Public 成员函数

static count_t GetCount () ynothrow
 
static count_t GetTotal () ynothrow
 

Protected 成员函数

 ~GMCounter () ynothrow
 析构。
 
void ResetID () ynothrow
 复位实例标识序列号。
 

静态 Protected 成员函数

static void ResetCount () ynothrow
 复位实例生成计数。
 
static void ResetTotal () ynothrow
 复位实例计数。
 

Private 属性

count_t nID
 实例标识序列号。
 

静态 Private 属性

static count_t nCount
 
static count_t nTotal
 实例生成计数和实例计数。
 

详细描述

template<class _type, typename count_t = u32>
class YSLib::GMCounter< _type, count_t >

模板类实例计数器。

自从
早于 build 132

在文件 ycounter.hpp40 行定义.

构造及析构函数说明

template<class _type, typename count_t = u32>
YSLib::GMCounter< _type, count_t >::GMCounter ( )
inline

构造。

注解
实例生成计数和实例计数自增。
自从
build 319

在文件 ycounter.hpp52 行定义.

template<class _type, typename count_t = u32>
YSLib::GMCounter< _type, count_t >::GMCounter ( const GMCounter< _type, count_t > &  )
inline

复制构造。

注解
实例生成计数和实例计数自增。
自从
build 319

在文件 ycounter.hpp63 行定义.

template<class _type, typename count_t = u32>
YSLib::GMCounter< _type, count_t >::GMCounter ( GMCounter< _type, count_t > &&  )
inlinedefault

转移构造。

转移构造:默认实现。

template<class _type, typename count_t = u32>
YSLib::GMCounter< _type, count_t >::~GMCounter ( )
inlineprotected

析构。

注解
实例计数自减。
自从
build 319

在文件 ycounter.hpp80 行定义.

成员函数说明

template<class _type, typename count_t = u32>
static count_t YSLib::GMCounter< _type, count_t >::GetCount ( )
inlinestatic
警告
不保证线程安全性。

在文件 ycounter.hpp88 行定义.

template<class _type, typename count_t = u32>
yconstfn count_t YSLib::GMCounter< _type, count_t >::GetObjectID ( ) const
inline

在文件 ycounter.hpp91 行定义.

template<class _type, typename count_t = u32>
static count_t YSLib::GMCounter< _type, count_t >::GetTotal ( )
inlinestatic

在文件 ycounter.hpp89 行定义.

template<class _type, typename count_t = u32>
static void YSLib::GMCounter< _type, count_t >::ResetCount ( )
inlinestaticprotected

复位实例生成计数。

自从
build 319

在文件 ycounter.hpp99 行定义.

template<class _type, typename count_t = u32>
void YSLib::GMCounter< _type, count_t >::ResetID ( )
inlineprotected

复位实例标识序列号。

自从
build 319

在文件 ycounter.hpp119 行定义.

template<class _type, typename count_t = u32>
static void YSLib::GMCounter< _type, count_t >::ResetTotal ( )
inlinestaticprotected

复位实例计数。

自从
build 319

在文件 ycounter.hpp109 行定义.

类成员变量说明

template<class _type, typename count_t = u32>
count_t YSLib::GMCounter< _type, count_t >::nCount
staticprivate

在文件 ycounter.hpp43 行定义.

template<class _type, typename count_t = u32>
count_t YSLib::GMCounter< _type, count_t >::nID
private

实例标识序列号。

在文件 ycounter.hpp44 行定义.

template<class _type, typename count_t = u32>
count_t YSLib::GMCounter< _type, count_t >::nTotal
staticprivate

实例生成计数和实例计数。

在文件 ycounter.hpp43 行定义.


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