Base class to receive up-to-date values of the NodeVariables. More...
#include <nodes_observer.h>
Public Types | |
using | NodeSubjectPtr = Nodes * |
Public Member Functions | |
NodesObserver (NodeSubjectPtr node_values) | |
Registers this observer with the subject class to receive updates. More... | |
virtual void | UpdateNodes ()=0 |
Callback method called every time the subject changes. More... | |
virtual | ~NodesObserver ()=default |
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.
using towr::NodesObserver::NodeSubjectPtr = Nodes* |
Definition at line 52 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.
|
virtualdefault |
|
pure virtual |
Callback method called every time the subject changes.
Implemented in towr::NodeSpline.
|
protected |
Definition at line 67 of file nodes_observer.h.