|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
值类型对象类。 更多...
#include <yobject.h>

Public 成员函数 | |||
| ValueObject ()=default | |||
| 无参数构造。 | |||
| template<typename _type , typename = typename std::enable_if<!std::is_same<_type&, ValueObject&>::value, int>::type> | |||
| ValueObject (_type &&obj) | |||
| 构造:使用对象引用。 | |||
| template<typename _type > | |||
| ValueObject (_type *p, PointerTag) | |||
| 构造:使用对象指针。 | |||
| ValueObject (const ValueObject &)=default | |||
| 复制构造:默认实现。 | |||
| ValueObject (ValueObject &&)=default | |||
| 转移构造:默认实现。 | |||
| ~ValueObject ()=default | |||
| 析构:默认实现。 | |||
| bool | operator! () const ynothrow | ||
| 判断是否为空。 | |||
| bool | operator== (const ValueObject &) const | ||
| operator bool () const ynothrow | |||
| 判断是否非空。 | |||
| template<typename _type > | |||
| _type & | GetObject () | ||
| template<typename _type > | |||
| const _type & | GetObject () const | ||
| const std::type_info & | GetType () const ynothrow | ||
| void | Clear () ynothrow | ||
| void | Swap (ValueObject &vo) ynothrow | ||
| 交换。 | |||
| ValueObject & | operator= (const ValueObject &)=default | ||
| ValueObject & | operator= (ValueObject &&)=default | ||
| template<typename _type > | |||
| _type & | Access () | ||
访问指定类型对象。
| |||
| template<typename _type > | |||
| const _type & | Access () const | ||
| template<typename _type > | |||
| _type * | AccessPtr () ynothrow | ||
| 访问指定类型对象指针。 | |||
| template<typename _type > | |||
| const _type * | AccessPtr () const ynothrow | ||
Public 属性 | |
| ystdex::any | content |
Private 成员函数 | |
| template<typename _type > | |
| _type & | GetMutableObject () const |
| 取指定类型的对象。 | |
值类型对象类。
具有值语义和深复制语义的对象。
|
default |
无参数构造。
|
inline |
|
inline |
|
default |
复制构造:默认实现。
|
default |
转移构造:默认实现。
|
default |
析构:默认实现。
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inlineexplicit |
|
default |
|
default |
| YSL_BEGIN bool ValueObject::operator== | ( | const ValueObject & | vo | ) | const |
|
inline |
| ystdex::any YSLib::ValueObject::content |