YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::GDependencyEvent< _tEvent, _tOwnerPointer > 模板类 参考

依赖事件项类模板。 更多...

#include <yevt.hpp>

类 YSLib::GDependencyEvent< _tEvent, _tOwnerPointer > 继承关系图:
YSLib::GDependencyEvent< _tEvent, _tOwnerPointer > 的协作图:

Public 类型

using DependentType = typename GDependency< _tEvent >::DependentType
 
using PointerType = typename GDependency< _tEvent >::PointerType
 
using ConstReferenceType = typename GDependency< _tEvent >::ConstReferenceType
 
using ReferentType = typename GDependency< _tEvent >::ReferentType
 
using ReferenceType = typename GDependency< _tEvent >::ReferenceType
 
using EventType = DependentType
 
using SEventType = typename EventType::SEventType
 
using FuncType = typename EventType::FuncType
 
using HandlerType = typename EventType::HandlerType
 
using SizeType = typename EventType::SizeType
 

Public 成员函数

 GDependencyEvent (PointerType p=PointerType())
 
template<typename _type >
ReferenceType operator+= (_type _arg)
 添加事件响应。 更多...
 
template<typename _type >
ReferenceType operator-= (_type _arg)
 移除事件响应。 更多...
 
template<class _type , typename _tRet , typename... _tParams>
ReferenceType Add (_type &obj, _tRet(_type::*pm)(_tParams...))
 添加事件响应:使用对象引用和成员函数指针。 更多...
 
template<class _type , typename _tRet , typename... _tParams>
ReferenceType Remove (_type &obj, _tRet(_type::*pm)(_tParams...))
 移除事件响应:目标为指定对象引用和成员函数指针。 更多...
 
template<typename... _tParams>
SizeType operator() (_tParams &&...args) const
 调用函数。 更多...
 
 DefGetterMem (const ynothrow, SizeType, Size, this->GetRef()) PDefH(void
 取列表中的响应数。 更多...
 

Public 属性

 Clear
 

详细描述

template<class _tEvent, class _tOwnerPointer = shared_ptr<_tEvent>>
class YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >

依赖事件项类模板。

警告
非虚析构。
自从
build 195

在文件 yevt.hpp562 行定义.

成员类型定义说明

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::ConstReferenceType = typename GDependency<_tEvent>::ConstReferenceType

在文件 yevt.hpp568 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::DependentType = typename GDependency<_tEvent>::DependentType

在文件 yevt.hpp565 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::EventType = DependentType

在文件 yevt.hpp571 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::FuncType = typename EventType::FuncType

在文件 yevt.hpp573 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::HandlerType = typename EventType::HandlerType

在文件 yevt.hpp574 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::PointerType = typename GDependency<_tEvent>::PointerType

在文件 yevt.hpp566 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::ReferenceType = typename GDependency<_tEvent>::ReferenceType

在文件 yevt.hpp570 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::ReferentType = typename GDependency<_tEvent>::ReferentType

在文件 yevt.hpp569 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::SEventType = typename EventType::SEventType

在文件 yevt.hpp572 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
using YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::SizeType = typename EventType::SizeType

在文件 yevt.hpp575 行定义.

构造及析构函数说明

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::GDependencyEvent ( PointerType  p = PointerType())
inline

在文件 yevt.hpp577 行定义.

成员函数说明

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
template<class _type , typename _tRet , typename... _tParams>
ReferenceType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::Add ( _type &  obj,
_tRet(_type::*)(_tParams...)  pm 
)
inline

添加事件响应:使用对象引用和成员函数指针。

自从
build 413

在文件 yevt.hpp607 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::DefGetterMem ( const ynothrow  ,
SizeType  ,
Size  ,
this->  GetRef() 
)

取列表中的响应数。

清除:移除所有事件响应。

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
template<typename... _tParams>
SizeType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::operator() ( _tParams &&...  args) const
inline

调用函数。

自从
build 413

在文件 yevt.hpp629 行定义.

参考 YSLib::UI::args , 以及 yforward.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
template<typename _type >
ReferenceType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::operator+= ( _type  _arg)
inline

添加事件响应。

在文件 yevt.hpp586 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
template<typename _type >
ReferenceType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::operator-= ( _type  _arg)
inline

移除事件响应。

在文件 yevt.hpp596 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
template<class _type , typename _tRet , typename... _tParams>
ReferenceType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::Remove ( _type &  obj,
_tRet(_type::*)(_tParams...)  pm 
)
inline

移除事件响应:目标为指定对象引用和成员函数指针。

自从
build 413

在文件 yevt.hpp618 行定义.

类成员变量说明

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::Clear

在文件 yevt.hpp642 行定义.


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