ocra-recipes
Doxygen documentation for the ocra-recipes repository
Public Member Functions | List of all members
ocra::Subject Class Reference

#include <ObserverSubject.h>

Inheritance diagram for ocra::Subject:
[legend]
Collaboration diagram for ocra::Subject:
[legend]

Public Member Functions

virtual ~Subject ()
 
template<int EVT, class Derived , class Base >
void connect (Derived &object, void(Base::*newCallback)(int)) const
 Call this method to register a non-static method as a callback. More...
 
template<int EVT>
void connect (void(*newCallback)(int)) const
 Call this method to register a free function as a callback. More...
 
template<int EVT, class Derived , class Base >
void disconnect (Derived &object, void(Base::*callbackToErase)(int)) const
 Disconnect non-static method. More...
 
template<int EVT>
void disconnect (void(*callbackToErase)(int)) const
 Disconnect free function. More...
 
template<int EVT>
void propagate () const
 
template<int EVT>
void propagate (int timestamp) const
 
- Public Member Functions inherited from ocra::SubjectBase< EVT_RESIZE >
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...
 
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
 
- Public Member Functions inherited from ocra::SubjectBase< EVT_CHANGE_DEPENDENCIES >
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...
 
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
 
- Public Member Functions inherited from ocra::SubjectBase< EVT_CHANGE_VALUE >
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...
 
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
 

Additional Inherited Members

- Protected Member Functions inherited from ocra::SubjectBase< EVT_RESIZE >
 SubjectBase ()
 
 ~SubjectBase ()
 
- Protected Member Functions inherited from ocra::SubjectBase< EVT_CHANGE_DEPENDENCIES >
 SubjectBase ()
 
 ~SubjectBase ()
 
- Protected Member Functions inherited from ocra::SubjectBase< EVT_CHANGE_VALUE >
 SubjectBase ()
 
 ~SubjectBase ()
 

Detailed Description

Definition at line 27 of file ObserverSubject.h.

Constructor & Destructor Documentation

virtual ocra::Subject::~Subject ( )
inlinevirtual

Definition at line 33 of file ObserverSubject.h.

Member Function Documentation

template<int EVT, class Derived , class Base >
void ocra::Subject::connect ( Derived &  object,
void(Base::*)(int)  newCallback 
) const
inline

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

Definition at line 37 of file ObserverSubject.h.

template<int EVT>
void ocra::Subject::connect ( void(*)(int)  newCallback) const
inline

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

Definition at line 53 of file ObserverSubject.h.

template<int EVT, class Derived , class Base >
void ocra::Subject::disconnect ( Derived &  object,
void(Base::*)(int)  callbackToErase 
) const
inline

Disconnect non-static method.

Definition at line 60 of file ObserverSubject.h.

template<int EVT>
void ocra::Subject::disconnect ( void(*)(int)  callbackToErase) const
inline

Disconnect free function.

Definition at line 76 of file ObserverSubject.h.

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

Definition at line 83 of file ObserverSubject.h.

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

Definition at line 90 of file ObserverSubject.h.


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