YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew > 模板结构体 参考

仿函数:替换非静态成员二元函数的第一个参数并绑定到指定对象。 更多...

#include <yfunc.hpp>

Public 成员函数

yconstfn ExpandMemberFirstBinder (_tNew &obj, _tRet(_type::*p)(_tPara))
 构造:使用非 _type 类型对象引用和成员函数指针。
 
yconstfn bool operator== (const ExpandMemberFirstBinder &rhs) const ynothrow
 比较:相等关系。
 
_tRet operator() (_tPara &&arg)
 调用:使用替换对象引用和参数。
 
template<class _tN >
_tRet operator() (_tN &, _tPara &&arg)
 调用:使用替换对象引用和参数。
 

Private 属性

_type * _po
 
_tRet(_type::* _pm )(_tPara)
 

详细描述

template<class _type, typename _tRet, typename _tPara, class _tNew = _type>
struct YSLib::ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew >

仿函数:替换非静态成员二元函数的第一个参数并绑定到指定对象。

自从
build 171

在文件 yfunc.hpp207 行定义.

构造及析构函数说明

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
yconstfn YSLib::ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew >::ExpandMemberFirstBinder ( _tNew &  obj,
_tRet(_type::*)(_tPara)  p 
)
inline

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

注解
使用 dynamic_cast 测试类型。

在文件 yfunc.hpp219 行定义.

成员函数说明

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
_tRet YSLib::ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew >::operator() ( _tPara &&  arg)
inline

调用:使用替换对象引用和参数。

注解
检测空指针。
自从
build 293

在文件 yfunc.hpp239 行定义.

参考 YB_LIKELY , 以及 yforward.

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
template<class _tN >
_tRet YSLib::ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew >::operator() ( _tN &  ,
_tPara &&  arg 
)
inline

调用:使用替换对象引用和参数。

注解
检测空指针。
自从
build 293

在文件 yfunc.hpp251 行定义.

参考 YB_LIKELY , 以及 yforward.

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
yconstfn bool YSLib::ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew >::operator== ( const ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew > &  rhs) const
inline

比较:相等关系。

自从
build 319

在文件 yfunc.hpp228 行定义.

类成员变量说明

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
_tRet(_type::* YSLib::ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew >::_pm)(_tPara)
private

在文件 yfunc.hpp211 行定义.

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
_type* YSLib::ExpandMemberFirstBinder< _type, _tRet, _tPara, _tNew >::_po
private

在文件 yfunc.hpp210 行定义.


该结构体的文档由以下文件生成: