ocra-recipes
Doxygen documentation for the ocra-recipes repository
|
#include <ObserverSubjectBase.h>
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 |
Definition at line 46 of file ObserverSubjectBase.h.
|
protected |
Definition at line 51 of file ObserverSubjectBase.h.
|
protected |
Definition at line 50 of file ObserverSubjectBase.h.
|
protected |
Definition at line 49 of file ObserverSubjectBase.h.
|
inlinevirtual |
Definition at line 54 of file ObserverSubjectBase.h.
|
protectedpure virtual |
Implemented in ocra::Invoker< void, EVT, false >, ocra::Invoker< T, EVT, false >, and ocra::Invoker< T, EVT, true >.
|
protectedpure virtual |
Implemented in ocra::Invoker< void, EVT, false >, ocra::Invoker< T, EVT, false >, and ocra::Invoker< T, EVT, true >.
|
inline |
Definition at line 65 of file ObserverSubjectBase.h.
|
inline |
Definition at line 78 of file ObserverSubjectBase.h.
|
inline |
Definition at line 59 of file ObserverSubjectBase.h.
|
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.
Implemented in ocra::Invoker< void, EVT, false >, ocra::Invoker< T, EVT, false >, and ocra::Invoker< T, EVT, true >.