API Guides > ConceptRT 3.x
EventDelegate< ParameterType > Class Template Referenceabstract

Event_pattern that executes delegates More...

Detailed Description

template<class ParameterType>
class ConceptRT::EventDelegate< ParameterType >

Event_pattern that executes delegates

Template Parameters
ParameterTypeType of the event and delegates parameter.
+ Inheritance diagram for EventDelegate< ParameterType >:

Public Member Methods

virtual void Execute (ParameterType parameter)=0
 Propagate the event. More...
 
virtual EventDelegate< ParameterType > & operator+= (Delegate< ParameterType > &d)=0
 Register an event listener. More...
 
virtual EventDelegate< ParameterType > & operator-= (Delegate< ParameterType > &d)=0
 Unregister an event listener. More...
 
virtual bool HasDelegate () const =0
 Query if this EventMultiDelegateDynamic has delegate. More...
 

Methods Documentation

virtual void Execute ( ParameterType  parameter)
pure virtual
virtual bool HasDelegate ( ) const
pure virtual
virtual EventDelegate<ParameterType>& operator+= ( Delegate< ParameterType > &  d)
pure virtual

Register an event listener.

Parameters
d[in,out] The delegate to register as listener of the event.
Returns
Myself.

Implemented in BaseEventMultiDelegate< ParameterType >, BaseEventMultiDelegate< ConceptRT::BaseConsole & >, and EventSingleDelegate< ParameterType >.

virtual EventDelegate<ParameterType>& operator-= ( Delegate< ParameterType > &  d)
pure virtual

Unregister an event listener.

Parameters
d[in,out] The delegate to unregistered.
Returns
Myself.

Implemented in BaseEventMultiDelegate< ParameterType >, BaseEventMultiDelegate< ConceptRT::BaseConsole & >, and EventSingleDelegate< ParameterType >.