Base class to receive up-to-date values of the NodeVariables. More...
#include <nodes_observer.h>
Public Member Functions | |
NodesObserver (NodeSubjectPtr node_values) | |
Registers this observer with the subject class to receive updates. | |
virtual void | UpdateNodes ()=0 |
Callback method called every time the subject changes. | |
virtual | ~NodesObserver () |
Protected Attributes | |
NodeSubjectPtr | node_values_ |
Base class to receive up-to-date values of the NodeVariables.
This class registers with the node variables and everytime the positions or velocities of a node change, the subject updates this class by calling the UpdatePolynomials() method.
Used by spline.h
This class implements the observer pattern: https://sourcemaking.com/design_patterns/observer
Definition at line 50 of file nodes_observer.h.
towr::NodesObserver::NodesObserver | ( | NodeSubjectPtr | node_values | ) |
Registers this observer with the subject class to receive updates.
node_values | The subject holding the Hermite node values. |
Definition at line 36 of file nodes_observer.cc.
virtual towr::NodesObserver::~NodesObserver | ( | ) | [virtual] |
virtual void towr::NodesObserver::UpdateNodes | ( | ) | [pure virtual] |
Callback method called every time the subject changes.
Implemented in towr::NodeSpline.
NodeSubjectPtr towr::NodesObserver::node_values_ [protected] |
Definition at line 67 of file nodes_observer.h.