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 <fwd.hh>
Public Member Functions | |
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) |
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="") | |
std::ostream & | writeGraph (std::ostream &os) const |
virtual | ~SignalTimeDependent () |
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:
dynamicgraph::SignalTimeDependent< T, Time >::SignalTimeDependent | ( | std::string | name = "" | ) |
Definition at line 102 of file signal-time-dependent.h.
dynamicgraph::SignalTimeDependent< T, Time >::SignalTimeDependent | ( | const SignalArray_const< Time > & | arr, |
std::string | name = "" |
||
) |
Definition at line 106 of file signal-time-dependent.h.
dynamicgraph::SignalTimeDependent< T, Time >::SignalTimeDependent | ( | boost::function2< T &, T &, Time > | t, |
const SignalArray_const< Time > & | sig, | ||
std::string | name = "" |
||
) |
Definition at line 111 of file signal-time-dependent.h.
|
inlinevirtual |
Definition at line 75 of file signal-time-dependent.h.
const T & dynamicgraph::SignalTimeDependent< T, Time >::access | ( | const Time & | t1 | ) |
Definition at line 119 of file signal-time-dependent.h.
|
virtual |
Definition at line 136 of file signal-time-dependent.h.
|
virtual |
Definition at line 148 of file signal-time-dependent.h.
|
inline |
Definition at line 86 of file signal-time-dependent.h.
|
virtual |
Definition at line 162 of file signal-time-dependent.h.
|
virtual |
Definition at line 153 of file signal-time-dependent.h.
|
inline |
Definition at line 77 of file signal-time-dependent.h.
|
virtual |
Definition at line 142 of file signal-time-dependent.h.
|
virtual |
Definition at line 158 of file signal-time-dependent.h.
|
inline |
Definition at line 84 of file signal-time-dependent.h.