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 (std::string name="") | |
SignalTimeDependent (const SignalArray_const< Time > &arr, std::string name="") | |
SignalTimeDependent (boost::function2< T &, T &, Time > t, const SignalArray_const< Time > &sig, std::string name="") | |
std::ostream & | writeGraph (std::ostream &os) const |
virtual | ~SignalTimeDependent () |
Public Member Functions inherited from dynamicgraph::Signal< T, Time > | |
virtual const T & | accessCopy () const |
virtual void | checkCompatibility () |
virtual std::ostream & | display (std::ostream &os) const |
virtual void | get (std::ostream &value) const |
virtual void | getClassName (std::string &aClassName) const |
bool | getKeepReference () |
operator const T & () const | |
virtual Signal< T, Time > & | operator= (const T &t) |
virtual void | recompute (const Time &t) |
virtual void | set (std::istringstream &value) |
virtual void | setConstant (const T &t) |
virtual void | setFunction (boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL) |
void | setKeepReference (const bool &b) |
virtual void | setReference (const T *t, Mutex *mutexref=NULL) |
virtual void | setReferenceNonConstant (T *t, Mutex *mutexref=NULL) |
Signal (std::string name) | |
virtual void | trace (std::ostream &os) const |
virtual | ~Signal () |
Public Member Functions inherited from dynamicgraph::SignalBase< Time > | |
SignalBase (std::string name="") | |
virtual | ~SignalBase () |
virtual const Time & | getTime () const |
virtual void | setTime (const Time &t) |
const bool & | getReady () const |
const std::string & | getName () const |
void | getClassName (std::string &aClassName) const |
void | setReady (const bool sready=true) |
virtual void | plug (SignalBase< Time > *sigarg) |
virtual void | unplug () |
virtual bool | isPlugged () const |
virtual SignalBase< Time > * | getPluged () const |
virtual void | setConstantDefault () |
std::string | shortName () const |
virtual void | ExtractNodeAndLocalNames (std::string &LocalName, std::string &NodeName) const |
Public Member Functions inherited from dynamicgraph::TimeDependency< Time > | |
void | addDependencies (const SignalArray_const< Time > &arr) |
void | addDependency (const SignalBase< Time > &sig) |
void | clearDependency () |
std::ostream & | displayDependencies (std::ostream &os, const int depth=-1, std::string space="", std::string next1="", std::string next2="") const |
bool | getNeedUpdateFromAllChildren () const |
Time | getPeriodTime () const |
bool | needUpdate (const Time &t1) const |
void | removeDependency (const SignalBase< Time > &sig) |
void | setDependencyType (DependencyType dep) |
void | setNeedUpdateFromAllChildren (const bool b=true) |
void | setPeriodTime (const Time &p) |
TimeDependency (SignalBase< Time > *sig, const DependencyType dep=DEPENDENCY_TYPE_DEFAULT) | |
TimeDependency (SignalBase< Time > *sig, const SignalArray_const< Time > &arr, const DependencyType dep=DEPENDENCY_TYPE_DEFAULT) | |
virtual | ~TimeDependency () |
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.
|
virtual |
Reimplemented from dynamicgraph::Signal< T, Time >.
Definition at line 119 of file signal-time-dependent.h.
|
virtual |
Reimplemented from dynamicgraph::SignalBase< Time >.
Definition at line 136 of file signal-time-dependent.h.
|
virtual |
Reimplemented from dynamicgraph::SignalBase< Time >.
Definition at line 148 of file signal-time-dependent.h.
|
inlinevirtual |
Reimplemented from dynamicgraph::SignalBase< Time >.
Definition at line 86 of file signal-time-dependent.h.
|
virtual |
Reimplemented from dynamicgraph::SignalBase< Time >.
Definition at line 162 of file signal-time-dependent.h.
|
virtual |
Reimplemented from dynamicgraph::SignalBase< Time >.
Definition at line 153 of file signal-time-dependent.h.
|
inlinevirtual |
Reimplemented from dynamicgraph::Signal< T, Time >.
Definition at line 77 of file signal-time-dependent.h.
|
virtual |
Reimplemented from dynamicgraph::SignalBase< Time >.
Definition at line 142 of file signal-time-dependent.h.
|
virtual |
Reimplemented from dynamicgraph::SignalBase< Time >.
Definition at line 158 of file signal-time-dependent.h.
|
inlinevirtual |
Reimplemented from dynamicgraph::TimeDependency< Time >.
Definition at line 84 of file signal-time-dependent.h.