ocra-recipes
Doxygen documentation for the ocra-recipes repository
Public Member Functions | List of all members
ocra::SubjectBase< EVT > Class Template Reference

#include <ObserverSubjectBase.h>

Public Member Functions

template<class T >
void connect (T &object, typename SubjectBaseTraits< EVT, T >::callback_type newCallback) const
 Call this method to register a non-static method as a callback. More...
 
void connect (typename SubjectBaseTraits< EVT, void >::callback_type newCallback) const
 Call this method to register a free function as a callback. More...
 
template<class T >
void disconnect (T &object, typename SubjectBaseTraits< EVT, T >::callback_type callback) const
 Disconnect non-static method. More...
 
void disconnect (typename SubjectBaseTraits< EVT, void >::callback_type callbackToErase) const
 Disconnect free function. More...
 
void propagate (int timestamp) const
 
void propagate () const
 

Protected Member Functions

 SubjectBase ()
 
 ~SubjectBase ()
 

Detailed Description

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

Definition at line 195 of file ObserverSubjectBase.h.

Constructor & Destructor Documentation

template<int EVT>
ocra::SubjectBase< EVT >::SubjectBase ( )
inlineprotected

Definition at line 320 of file ObserverSubjectBase.h.

template<int EVT>
ocra::SubjectBase< EVT >::~SubjectBase ( )
inlineprotected

Definition at line 321 of file ObserverSubjectBase.h.

Member Function Documentation

template<int EVT>
template<class T >
void ocra::SubjectBase< EVT >::connect ( T &  object,
typename SubjectBaseTraits< EVT, T >::callback_type  newCallback 
) const
inline

Call this method to register a non-static method as a callback.

Definition at line 327 of file ObserverSubjectBase.h.

template<int EVT>
void ocra::SubjectBase< EVT >::connect ( typename SubjectBaseTraits< EVT, void >::callback_type  newCallback) const
inline

Call this method to register a free function as a callback.

Definition at line 334 of file ObserverSubjectBase.h.

template<int EVT>
template<class T >
void ocra::SubjectBase< EVT >::disconnect ( T &  object,
typename SubjectBaseTraits< EVT, T >::callback_type  callback 
) const
inline

Disconnect non-static method.

Definition at line 341 of file ObserverSubjectBase.h.

template<int EVT>
void ocra::SubjectBase< EVT >::disconnect ( typename SubjectBaseTraits< EVT, void >::callback_type  callbackToErase) const
inline

Disconnect free function.

Definition at line 352 of file ObserverSubjectBase.h.

template<int EVT>
void ocra::SubjectBase< EVT >::propagate ( int  timestamp) const
inline
See also
ocra::ObserverBase.

Definition at line 360 of file ObserverSubjectBase.h.

template<int EVT>
void ocra::SubjectBase< EVT >::propagate ( ) const
inline

Definition at line 366 of file ObserverSubjectBase.h.


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