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

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

#include <yevt.hpp>

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

Public 类型

typedef GDependency< _tEvent >
::DependentType 
DependentType
 
typedef GDependency< _tEvent >
::PointerType 
PointerType
 
typedef GDependency< _tEvent >
::ConstReferenceType 
ConstReferenceType
 
typedef GDependency< _tEvent >
::ReferentType 
ReferentType
 
typedef GDependency< _tEvent >
::ReferenceType 
ReferenceType
 
typedef DependentType EventType
 
typedef EventType::EventArgsType EventArgsType
 
typedef EventType::SEventType SEventType
 
typedef EventType::FuncType FuncType
 
typedef EventType::HandlerType HandlerType
 
typedef EventType::SizeType SizeType
 
- Public 类型 继承自 YSLib::GDependency< _tEvent, _tOwnerPointer >
typedef _tEvent DependentType
 
typedef _tOwnerPointer PointerType
 
typedef std::remove_const
< typename
std::remove_reference
< ConstReferenceType >::type >
::type 
ReferentType
 
typedef ReferentTypeReferenceType
 

Public 成员函数

 GDependencyEvent (PointerType p=PointerType())
 
template<typename _type >
ReferenceType operator+= (_type _arg)
 添加事件响应。
 
template<typename _type >
ReferenceType operator-= (_type _arg)
 移除事件响应。
 
template<class _type >
ReferenceType Add (_type &obj, void(_type::*pm)(EventArgsType))
 添加事件响应:使用对象引用和成员函数指针。
 
template<class _type >
ReferenceType Remove (_type &obj, void(_type::*pm)(EventArgsType))
 移除事件响应:目标为指定对象引用和成员函数指针。
 
SizeType operator() (EventArgsType &&e) const
 调用函数。
 
SizeType GetSize () const ynothrow
 取列表中的响应数。
 
void Clear ()
 清除:移除所有事件响应。
 
- Public 成员函数 继承自 YSLib::GDependency< _tEvent, _tOwnerPointer >
 GDependency (PointerType p=PointerType())
 
GDependencyoperator= (const GDependency &)=default
 
GDependencyoperator= (GDependency &&)=default
 
 operator ConstReferenceType () const ynothrow
 
 operator ReferenceType () ynothrow
 
 operator bool () const ynothrow
 
ConstReferenceType GetRef () const ynothrow
 
ReferenceType GetRef () ynothrow
 
ReferenceType GetNewRef () ynothrow
 
PointerType GetCopyOnWritePtr ()
 
void Reset ()
 

额外继承的成员函数

- Public 属性 继承自 YSLib::GDependency< _tEvent, _tOwnerPointer >
decltype(*PointerType()) typede ConstReferenceType )
 

详细描述

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

依赖事件项类模板。

警告
非虚析构。
自从
build 195

在文件 yevt.hpp511 行定义.

成员类型定义说明

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

在文件 yevt.hpp517 行定义.

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

在文件 yevt.hpp514 行定义.

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

在文件 yevt.hpp521 行定义.

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

在文件 yevt.hpp520 行定义.

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

在文件 yevt.hpp523 行定义.

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

在文件 yevt.hpp524 行定义.

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

在文件 yevt.hpp515 行定义.

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

在文件 yevt.hpp519 行定义.

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

在文件 yevt.hpp518 行定义.

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

在文件 yevt.hpp522 行定义.

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

在文件 yevt.hpp525 行定义.

构造及析构函数说明

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

在文件 yevt.hpp527 行定义.

成员函数说明

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
template<class _type >
ReferenceType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::Add ( _type &  obj,
void(_type::*)(EventArgsType pm 
)
inline

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

在文件 yevt.hpp556 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
void YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::Clear ( )
inline

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

在文件 yevt.hpp588 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
SizeType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::GetSize ( ) const
inline

取列表中的响应数。

在文件 yevt.hpp583 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
SizeType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::operator() ( EventArgsType &&  e) const
inline

调用函数。

在文件 yevt.hpp575 行定义.

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

添加事件响应。

在文件 yevt.hpp536 行定义.

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

移除事件响应。

在文件 yevt.hpp546 行定义.

template<class _tEvent , class _tOwnerPointer = shared_ptr<_tEvent>>
template<class _type >
ReferenceType YSLib::GDependencyEvent< _tEvent, _tOwnerPointer >::Remove ( _type &  obj,
void(_type::*)(EventArgsType pm 
)
inline

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

在文件 yevt.hpp566 行定义.


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