YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
使用引用计数的静态初始化管理器。 更多...
#include <utility.hpp>
Public 类型 | |
typedef _type | object_type |
typedef _tCount | count_type |
Public 成员函数 | |
template<typename... _tParams> | |
nifty_counter (_tParams &&...args) | |
~nifty_counter () | |
静态 Public 成员函数 | |
static object_type & | get () |
static count_type | use_count () |
静态 Private 成员函数 | |
static count_type & | get_count () |
static object_type *& | get_object_ptr () |
使用引用计数的静态初始化管理器。
静态初始化,通过引用计数保证所有在定义本类型的对象后已有静态对象被初始化。 在所有翻译单元的本类型对象析构后自动反初始化。
在文件 utility.hpp 第 268 行定义.
typedef _tCount ystdex::nifty_counter< _type, _tCount >::count_type |
在文件 utility.hpp 第 272 行定义.
typedef _type ystdex::nifty_counter< _type, _tCount >::object_type |
在文件 utility.hpp 第 271 行定义.
|
inline |
|
inline |
|
inlinestatic |
在文件 utility.hpp 第 287 行定义.
参考 ystdex::nifty_counter< _type, _tCount >::get_object_ptr() , 以及 yassume.
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |