A type of signal that enforces a time dependency between other signals, making sure its inputs are up to date on access, using a incrementing time tick as reference. More...
#include <dynamic-graph/signal-time-dependent.h>
Public Member Functions | |
SignalTimeDependent (boost::function2< T &, T &, Time > t, const SignalArray_const< Time > &sig, std::string name="") | |
SignalTimeDependent (const SignalArray_const< Time > &arr, std::string name="") | |
SignalTimeDependent (std::string name="") | |
const T & | access (const Time &t1) |
virtual void | addDependency (const SignalBase< Time > &signal) |
virtual void | clearDependencies () |
std::ostream & | displayDependencies (std::ostream &os, const int depth=-1, std::string space="", std::string next1="", std::string next2="") const |
virtual Time | getPeriodTime () const |
virtual bool | needUpdate (const Time &t) const |
const T & | operator() (const Time &t1) |
virtual void | removeDependency (const SignalBase< Time > &signal) |
virtual void | setPeriodTime (const Time &p) |
std::ostream & | writeGraph (std::ostream &os) const |
A type of signal that enforces a time dependency between other signals, making sure its inputs are up to date on access, using a incrementing time tick as reference.
It works this way. For a given SignalTimeDependent S,
Thus, the value of dependent signals can be accessed quickly and repeatedly through the Signal::accessCopy () function.
An example: