GenericObserver class for observing specific messages. More...
#include <ikarus/utils/observer/genericobserver.hh>
Public Types | |
| using | MessageType = M | 
Public Member Functions | |
| template<typename F > | |
| GenericObserver (Messages message, F &&f) | |
| Constructor for GenericObserver.  More... | |
| void | updateImpl (Messages message) override | 
| 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... | |
Protected Member Functions | |
| 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) | 
This class template implements an observer for a specific message type.
| M | The type of messages to be observed. | 
      
  | 
  inherited | 
      
  | 
  inline | 
Initializes the observer with a specific message and a function to be executed upon observation.
| F | Type of the function to be executed. | 
| p_message | The message to be observed. | 
| p_f | The function to be executed with the current step . | 
      
  | 
  inlineinherited | 
| message | The message to be received. | 
      
  | 
  inlineinherited | 
| message | The message to be received. | 
| vec | The Eigen::VectorXd associated with the message. | 
      
  | 
  inlineinherited | 
| message | The message to be received. | 
| val | The string value associated with the message. | 
      
  | 
  inlineinherited | 
| message | The message to be received. | 
| val | The double value associated with the message. | 
      
  | 
  inlineinherited | 
| message | The message to be received. | 
| val | The integer value associated with the message. | 
      
  | 
  inlineinherited | 
| message | The message to be received. | 
| val1 | The integer value associated with the message. | 
| val2 | The string value associated with the message. | 
      
  | 
  inlineinherited | 
| message | The message to be received. | 
| val1 | The integer value associated with the message. | 
| val2 | The double value associated with the message. | 
      
  | 
  inlineoverridevirtual | 
Reimplemented from Ikarus::IObserver< M >.
      
  | 
  inlineprotectedvirtualinherited | 
      
  | 
  inlineprotectedvirtualinherited | 
      
  | 
  inlineprotectedvirtualinherited | 
      
  | 
  inlineprotectedvirtualinherited | 
      
  | 
  inlineprotectedvirtualinherited | 
      
  | 
  inlineprotectedvirtualinherited |