Generic observer interface for the Observer design pattern. See [3] for a description of the design pattern.
More...
#include <ikarus/utils/observer/observer.hh>
|
virtual | ~IObserver ()=default |
| Virtual destructor for the observer interface. More...
|
|
void | update (MessageType message) |
| Update method for receiving notifications with a message. More...
|
|
void | update (MessageType message, double val) |
| Update method for receiving notifications with a message and a double value. More...
|
|
void | update (MessageType message, int val) |
| Update method for receiving notifications with a message and an integer value. More...
|
|
void | update (MessageType message, const std::string &val) |
| Update method for receiving notifications with a message and a string value. More...
|
|
void | update (MessageType message, int val1, double val2) |
| Update method for receiving notifications with a message and two values (integer and double). More...
|
|
void | update (MessageType message, int val1, const std::string &val2) |
| Update method for receiving notifications with a message, an integer value, and a string value. More...
|
|
void | update (MessageType message, const Eigen::VectorXd &vec) |
| Update method for receiving notifications with a message and an Eigen::VectorXd. More...
|
|
|
virtual void | updateImpl (MessageType message) |
|
virtual void | updateImpl (MessageType message, double val) |
|
virtual void | updateImpl (MessageType message, int val) |
|
virtual void | updateImpl (MessageType message, const std::string &val) |
|
virtual void | updateImpl (MessageType message, int val1, const std::string &val2) |
|
virtual void | updateImpl (MessageType message, int val1, double val2) |
|
virtual void | updateImpl (MessageType message, const Eigen::VectorXd &vec) |
|
template<typename MessageType>
class Ikarus::IObserver< MessageType >
- Template Parameters
-
MessageType | The type of message that the observer can handle. |
◆ ~IObserver()
template<typename MessageType >
◆ update() [1/7]
template<typename MessageType >
- Parameters
-
message | The message to be received. |
◆ update() [2/7]
template<typename MessageType >
void Ikarus::IObserver< MessageType >::update |
( |
MessageType |
message, |
|
|
const Eigen::VectorXd & |
vec |
|
) |
| |
|
inline |
- Parameters
-
message | The message to be received. |
vec | The Eigen::VectorXd associated with the message. |
◆ update() [3/7]
template<typename MessageType >
void Ikarus::IObserver< MessageType >::update |
( |
MessageType |
message, |
|
|
const std::string & |
val |
|
) |
| |
|
inline |
- Parameters
-
message | The message to be received. |
val | The string value associated with the message. |
◆ update() [4/7]
template<typename MessageType >
- Parameters
-
message | The message to be received. |
val | The double value associated with the message. |
◆ update() [5/7]
template<typename MessageType >
- Parameters
-
message | The message to be received. |
val | The integer value associated with the message. |
◆ update() [6/7]
template<typename MessageType >
void Ikarus::IObserver< MessageType >::update |
( |
MessageType |
message, |
|
|
int |
val1, |
|
|
const std::string & |
val2 |
|
) |
| |
|
inline |
- Parameters
-
message | The message to be received. |
val1 | The integer value associated with the message. |
val2 | The string value associated with the message. |
◆ update() [7/7]
template<typename MessageType >
void Ikarus::IObserver< MessageType >::update |
( |
MessageType |
message, |
|
|
int |
val1, |
|
|
double |
val2 |
|
) |
| |
|
inline |
- Parameters
-
message | The message to be received. |
val1 | The integer value associated with the message. |
val2 | The double value associated with the message. |
◆ updateImpl() [1/7]
template<typename MessageType >
◆ updateImpl() [2/7]
template<typename MessageType >
virtual void Ikarus::IObserver< MessageType >::updateImpl |
( |
MessageType |
message, |
|
|
const Eigen::VectorXd & |
vec |
|
) |
| |
|
inlineprotectedvirtual |
◆ updateImpl() [3/7]
template<typename MessageType >
virtual void Ikarus::IObserver< MessageType >::updateImpl |
( |
MessageType |
message, |
|
|
const std::string & |
val |
|
) |
| |
|
inlineprotectedvirtual |
◆ updateImpl() [4/7]
template<typename MessageType >
virtual void Ikarus::IObserver< MessageType >::updateImpl |
( |
MessageType |
message, |
|
|
double |
val |
|
) |
| |
|
inlineprotectedvirtual |
◆ updateImpl() [5/7]
template<typename MessageType >
virtual void Ikarus::IObserver< MessageType >::updateImpl |
( |
MessageType |
message, |
|
|
int |
val |
|
) |
| |
|
inlineprotectedvirtual |
◆ updateImpl() [6/7]
template<typename MessageType >
virtual void Ikarus::IObserver< MessageType >::updateImpl |
( |
MessageType |
message, |
|
|
int |
val1, |
|
|
const std::string & |
val2 |
|
) |
| |
|
inlineprotectedvirtual |
◆ updateImpl() [7/7]
template<typename MessageType >
virtual void Ikarus::IObserver< MessageType >::updateImpl |
( |
MessageType |
message, |
|
|
int |
val1, |
|
|
double |
val2 |
|
) |
| |
|
inlineprotectedvirtual |
The documentation for this class was generated from the following file: