YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::GHEvent< _tRet(_tParams...)> 模板类 参考

#include <yevt.hpp>

类 YSLib::GHEvent< _tRet(_tParams...)> 继承关系图:
YSLib::GHEvent< _tRet(_tParams...)> 的协作图:

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< FuncTypeBaseType
 

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
 
GHEventoperator= (const GHEvent &)=default
 
GHEventoperator= (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
 比较函数:相等关系。
 

详细描述

template<typename _tRet, typename... _tParams>
class YSLib::GHEvent< _tRet(_tParams...)>

警告
非虚析构。

在文件 yevt.hpp61 行定义.

成员类型定义说明

template<typename _tRet , typename... _tParams>
typedef std::function<FuncType> YSLib::GHEvent< _tRet(_tParams...)>::BaseType

在文件 yevt.hpp70 行定义.

template<typename _tRet , typename... _tParams>
typedef bool(* YSLib::GHEvent< _tRet(_tParams...)>::Comparer)(const GHEvent &, const GHEvent &)
private

比较函数类型。

在文件 yevt.hpp73 行定义.

template<typename _tRet , typename... _tParams>
typedef std::conditional<std::tuple_size<TupleType>::value == 0, void, typename std::tuple_element<0, TupleType>::type>::type YSLib::GHEvent< _tRet(_tParams...)>::EventArgsType

在文件 yevt.hpp68 行定义.

template<typename _tRet , typename... _tParams>
typedef void YSLib::GHEvent< _tRet(_tParams...)>::FuncType(_tParams...)

在文件 yevt.hpp69 行定义.

template<typename _tRet , typename... _tParams>
typedef tuple<_tParams...> YSLib::GHEvent< _tRet(_tParams...)>::TupleType

在文件 yevt.hpp65 行定义.

构造及析构函数说明

template<typename _tRet , typename... _tParams>
yconstfn YSLib::GHEvent< _tRet(_tParams...)>::GHEvent ( FuncType f)
inline

构造:使用函数指针。

自从
build 351

在文件 yevt.hpp109 行定义.

template<typename _tRet , typename... _tParams>
template<class _fCallable >
yconstfn YSLib::GHEvent< _tRet(_tParams...)>::GHEvent ( _fCallable &&  f,
typename std::enable_if< std::is_constructible< BaseType, _fCallable >::value, int >::type  = 0 
)
inline

使用函数对象。

自从
build 327

在文件 yevt.hpp118 行定义.

template<typename _tRet , typename... _tParams>
template<class _type >
yconstfn YSLib::GHEvent< _tRet(_tParams...)>::GHEvent ( _type &  obj,
void(_type::*)(_tParams...)  pm 
)
inline

构造:使用对象引用和成员函数指针。

在文件 yevt.hpp127 行定义.

template<typename _tRet , typename... _tParams>
yconstfn YSLib::GHEvent< _tRet(_tParams...)>::GHEvent ( const GHEvent< _tRet(_tParams...)> &  )
default
template<typename _tRet , typename... _tParams>
yconstfn YSLib::GHEvent< _tRet(_tParams...)>::GHEvent ( GHEvent< _tRet(_tParams...)> &&  )
default

成员函数说明

template<typename _tRet , typename... _tParams>
static yconstfn bool YSLib::GHEvent< _tRet(_tParams...)>::AreAlwaysEqual ( const GHEvent< _tRet(_tParams...)> &  ,
const GHEvent< _tRet(_tParams...)> &   
)
inlinestaticprivate

在文件 yevt.hpp175 行定义.

template<typename _tRet , typename... _tParams>
template<typename _type >
static yconstfn Comparer YSLib::GHEvent< _tRet(_tParams...)>::GetComparer ( _type &  x,
_type &  y,
decltype(x==y)  = false 
)
inlinestaticprivate
自从
build 319

在文件 yevt.hpp163 行定义.

template<typename _tRet , typename... _tParams>
template<typename _type , typename _tUnused >
static yconstfn Comparer YSLib::GHEvent< _tRet(_tParams...)>::GetComparer ( _type &  ,
_tUnused &   
)
inlinestaticprivate

在文件 yevt.hpp169 行定义.

template<typename _tRet , typename... _tParams>
GHEvent& YSLib::GHEvent< _tRet(_tParams...)>::operator= ( const GHEvent< _tRet(_tParams...)> &  )
default
template<typename _tRet , typename... _tParams>
GHEvent& YSLib::GHEvent< _tRet(_tParams...)>::operator= ( GHEvent< _tRet(_tParams...)> &&  )
default

转移赋值:默认实现。

template<typename _tRet , typename... _tParams>
yconstfn bool YSLib::GHEvent< _tRet(_tParams...)>::operator== ( const GHEvent< _tRet(_tParams...)> &  h) const
inline

在文件 yevt.hpp142 行定义.

类成员变量说明

template<typename _tRet , typename... _tParams>
Comparer YSLib::GHEvent< _tRet(_tParams...)>::comp_eq
private

比较函数:相等关系。

在文件 yevt.hpp101 行定义.


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