ocra-recipes
Doxygen documentation for the ocra-recipes repository
Public Member Functions | Protected Types | Protected Member Functions | List of all members
ocra::InvokerBase< EVT > Class Template Referenceabstract

#include <ObserverSubjectBase.h>

Inheritance diagram for ocra::InvokerBase< EVT >:
[legend]

Public Member Functions

virtual ~InvokerBase ()
 
virtual void trigger (int timestamp)=0
 
template<class T >
bool isObserverEqualTo (std::pair< T *, void(T::*)(int)> observer)
 
template<class T >
bool isCallbackEqualTo (void(T::*callback)(int))
 
bool isCallbackEqualTo (void(*callback)(int))
 

Protected Types

typedef ObserverBase< EVT > observer_base_type
 
typedef void(observer_base_type::* member_callback_type) (int)
 
typedef void(* free_callback_type) (int)
 

Protected Member Functions

virtual boost::any getCallback ()=0
 
virtual void * getObject ()=0
 

Detailed Description

template<int EVT>
class ocra::InvokerBase< EVT >

Definition at line 46 of file ObserverSubjectBase.h.

Member Typedef Documentation

template<int EVT>
typedef void(* ocra::InvokerBase< EVT >::free_callback_type) (int)
protected

Definition at line 51 of file ObserverSubjectBase.h.

template<int EVT>
typedef void(observer_base_type::* ocra::InvokerBase< EVT >::member_callback_type) (int)
protected

Definition at line 50 of file ObserverSubjectBase.h.

template<int EVT>
typedef ObserverBase<EVT> ocra::InvokerBase< EVT >::observer_base_type
protected

Definition at line 49 of file ObserverSubjectBase.h.

Constructor & Destructor Documentation

template<int EVT>
virtual ocra::InvokerBase< EVT >::~InvokerBase ( )
inlinevirtual

Definition at line 54 of file ObserverSubjectBase.h.

Member Function Documentation

template<int EVT>
virtual boost::any ocra::InvokerBase< EVT >::getCallback ( )
protectedpure virtual
template<int EVT>
virtual void* ocra::InvokerBase< EVT >::getObject ( )
protectedpure virtual
template<int EVT>
template<class T >
bool ocra::InvokerBase< EVT >::isCallbackEqualTo ( void(T::*)(int)  callback)
inline

Definition at line 65 of file ObserverSubjectBase.h.

template<int EVT>
bool ocra::InvokerBase< EVT >::isCallbackEqualTo ( void(*)(int)  callback)
inline

Definition at line 78 of file ObserverSubjectBase.h.

template<int EVT>
template<class T >
bool ocra::InvokerBase< EVT >::isObserverEqualTo ( std::pair< T *, void(T::*)(int)>  observer)
inline

Definition at line 59 of file ObserverSubjectBase.h.

template<int EVT>
virtual void ocra::InvokerBase< EVT >::trigger ( int  timestamp)
pure virtual

If the wrapped callback is a method of a derived class of ObserverBase, forwards the call to ObserverBase so that the propagation mechanism is properly invoked. Else simply invokes the callback.

See also
ocra::ObserverBase.

Implemented in ocra::Invoker< void, EVT, false >, ocra::Invoker< T, EVT, false >, and ocra::Invoker< T, EVT, true >.


The documentation for this class was generated from the following file: