|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
#include <yevt.hpp>


类 | |
| struct | GEquality |
Public 类型 | |
| typedef tuple< _tParams...> | TupleType |
| typedef std::conditional < std::tuple_size< TupleType > ::value==0, void, typename std::tuple_element < 0, TupleType >::type >::type | EventArgsType |
| typedef void | FuncType (_tParams...) |
| typedef std::function< FuncType > | BaseType |
Public 成员函数 | |
| yconstfn | GHEvent (FuncType *f) |
| 构造:使用函数指针。 | |
| template<class _fCallable > | |
| yconstfn | GHEvent (_fCallable &&f, typename std::enable_if< std::is_constructible< BaseType, _fCallable >::value, int >::type=0) |
| 使用函数对象。 | |
| template<class _type > | |
| yconstfn | GHEvent (_type &obj, void(_type::*pm)(_tParams...)) |
| 构造:使用对象引用和成员函数指针。 | |
| yconstfn | GHEvent (const GHEvent &)=default |
| yconstfn | GHEvent (GHEvent &&)=default |
| GHEvent & | operator= (const GHEvent &)=default |
| GHEvent & | operator= (GHEvent &&)=default |
| 转移赋值:默认实现。 | |
| yconstfn bool | operator== (const GHEvent &h) const |
Private 类型 | |
| typedef bool(* | Comparer )(const GHEvent &, const GHEvent &) |
| 比较函数类型。 | |
静态 Private 成员函数 | |
| template<typename _type > | |
| static yconstfn Comparer | GetComparer (_type &x, _type &y, decltype(x==y)=false) ynothrow |
| template<typename _type , typename _tUnused > | |
| static yconstfn Comparer | GetComparer (_type &, _tUnused &) ynothrow |
| static yconstfn bool | AreAlwaysEqual (const GHEvent &, const GHEvent &) ynothrow |
Private 属性 | |
| Comparer | comp_eq |
| 比较函数:相等关系。 | |
| typedef std::conditional<std::tuple_size<TupleType>::value == 0, void, typename std::tuple_element<0, TupleType>::type>::type YSLib::GHEvent< _tRet(_tParams...)>::EventArgsType |
| typedef void YSLib::GHEvent< _tRet(_tParams...)>::FuncType(_tParams...) |
| typedef tuple<_tParams...> YSLib::GHEvent< _tRet(_tParams...)>::TupleType |
|
default |
|
default |
|
default |
|
default |
转移赋值:默认实现。
|
private |