YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
全局局部静态单态存储器。 更多...
#include <ystorage.hpp>
Public 类型 | |
using | PointerType = _tPointer |
静态 Public 成员函数 | |
static | DefGetter (ynothrow, PointerType, PointerRaw, GetStaticPtrRef()) static PointerType GetPointer() |
取指针。 更多... | |
static _type & | GetInstance () |
取实例引用。 更多... | |
static void | Release () ynothrow |
删除对象并置指针为空值。 更多... | |
Private 成员函数 | |
GLocalStaticCache () | |
静态 Private 成员函数 | |
static PointerType & | GetStaticPtrRef () ynothrow |
取静态指针引用。 更多... | |
static void | Check () |
检查是否已经初始化,否则构造新对象。 更多... | |
静态 Private 属性 | |
static PointerType | _ptr |
全局局部静态单态存储器。
std::is_nothrow_constructible<_tPointer>::value
。 在文件 ystorage.hpp 第 151 行定义.
using YSLib::GLocalStaticCache< _type, _tPointer >::PointerType = _tPointer |
在文件 ystorage.hpp 第 157 行定义.
|
private |
|
inlinestaticprivate |
检查是否已经初始化,否则构造新对象。
在文件 ystorage.hpp 第 180 行定义.
参考 YSLib::GLocalStaticCache< _type, _tPointer >::GetStaticPtrRef().
参考自 YSLib::GLocalStaticCache< _type, _tPointer >::DefGetter() , 以及 YSLib::GLocalStaticCache< _type, _tPointer >::GetInstance().
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
取静态指针引用。
在文件 ystorage.hpp 第 169 行定义.
参考自 YSLib::GLocalStaticCache< _type, _tPointer >::Check() , 以及 YSLib::GLocalStaticCache< _type, _tPointer >::Release().
|
inlinestatic |
删除对象并置指针为空值。
在文件 ystorage.hpp 第 214 行定义.
参考 YSLib::GLocalStaticCache< _type, _tPointer >::GetStaticPtrRef().
|
staticprivate |
在文件 ystorage.hpp 第 160 行定义.