A helper class for setting and specifying dependencies between signals. More...
#include <fwd.hh>
Public Types | |
typedef std::list< const SignalBase< Time > * > | Dependencies |
enum | DependencyType { TIME_DEPENDENT, BOOL_DEPENDENT, ALWAYS_READY } |
Public Member Functions | |
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 std::ostream & | writeGraph (std::ostream &os) const |
virtual | ~TimeDependency () |
Public Attributes | |
Dependencies | dependencies |
DependencyType | dependencyType |
Time | lastAskForUpdate |
SignalBase< Time > & | leader |
Time | periodTime |
bool | updateFromAllChildren |
Static Public Attributes | |
static const bool | ALL_READY_DEFAULT = false |
static const DependencyType | DEPENDENCY_TYPE_DEFAULT = TIME_DEPENDENT |
static const Time | PERIOD_TIME_DEFAULT = 1 |
A helper class for setting and specifying dependencies between signals.
typedef std::list<const SignalBase<Time> *> dynamicgraph::TimeDependency< Time >::Dependencies |
Definition at line 28 of file time-dependency.h.
enum dynamicgraph::TimeDependency::DependencyType |
Enumerator | |
---|---|
TIME_DEPENDENT | |
BOOL_DEPENDENT | |
ALWAYS_READY |
Definition at line 21 of file time-dependency.h.
dynamicgraph::TimeDependency< Time >::TimeDependency | ( | SignalBase< Time > * | sig, |
const DependencyType | dep = DEPENDENCY_TYPE_DEFAULT |
||
) |
Definition at line 20 of file time-dependency.t.cpp.
dynamicgraph::TimeDependency< Time >::TimeDependency | ( | SignalBase< Time > * | sig, |
const SignalArray_const< Time > & | arr, | ||
const DependencyType | dep = DEPENDENCY_TYPE_DEFAULT |
||
) |
Definition at line 25 of file time-dependency.t.cpp.
|
inlinevirtual |
Definition at line 45 of file time-dependency.h.
void dynamicgraph::TimeDependency< Time >::addDependencies | ( | const SignalArray_const< Time > & | arr | ) |
Definition at line 36 of file time-dependency.t.cpp.
void dynamicgraph::TimeDependency< Time >::addDependency | ( | const SignalBase< Time > & | sig | ) |
Definition at line 43 of file time-dependency.t.cpp.
void dynamicgraph::TimeDependency< Time >::clearDependency | ( | ) |
Definition at line 53 of file time-dependency.t.cpp.
std::ostream & dynamicgraph::TimeDependency< Time >::displayDependencies | ( | std::ostream & | os, |
const int | depth = -1 , |
||
std::string | space = "" , |
||
std::string | next1 = "" , |
||
std::string | next2 = "" |
||
) | const |
Definition at line 121 of file time-dependency.t.cpp.
|
inline |
Definition at line 65 of file time-dependency.h.
|
inline |
Definition at line 68 of file time-dependency.h.
bool dynamicgraph::TimeDependency< Time >::needUpdate | ( | const Time & | t1 | ) | const |
Definition at line 58 of file time-dependency.t.cpp.
void dynamicgraph::TimeDependency< Time >::removeDependency | ( | const SignalBase< Time > & | sig | ) |
Definition at line 48 of file time-dependency.t.cpp.
|
inline |
Definition at line 60 of file time-dependency.h.
|
inline |
Definition at line 62 of file time-dependency.h.
|
inline |
Definition at line 67 of file time-dependency.h.
|
virtual |
Reimplemented in dynamicgraph::SignalTimeDependent< T, Time >, dynamicgraph::SignalTimeDependent< int, int >, dynamicgraph::SignalTimeDependent< Vector, int >, and dynamicgraph::SignalTimeDependent< double, int >.
Definition at line 116 of file time-dependency.t.cpp.
|
static |
Definition at line 33 of file time-dependency.h.
Dependencies dynamicgraph::TimeDependency< Time >::dependencies |
Definition at line 31 of file time-dependency.h.
|
static |
Definition at line 29 of file time-dependency.h.
DependencyType dynamicgraph::TimeDependency< Time >::dependencyType |
Definition at line 35 of file time-dependency.h.
|
mutable |
Definition at line 23 of file time-dependency.h.
SignalBase<Time>& dynamicgraph::TimeDependency< Time >::leader |
Definition at line 26 of file time-dependency.h.
|
static |
Definition at line 38 of file time-dependency.h.
Time dynamicgraph::TimeDependency< Time >::periodTime |
Definition at line 37 of file time-dependency.h.
bool dynamicgraph::TimeDependency< Time >::updateFromAllChildren |
Definition at line 32 of file time-dependency.h.