A helper class for setting and specifying dependencies between signals. More...
#include <dynamic-graph/time-dependency.h>
Public Types | |
enum | DependencyType { TIME_DEPENDENT, BOOL_DEPENDENT, ALWAYS_READY } |
typedef std::list< const SignalBase< Time > * > | Dependencies |
Public Member Functions | |
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 () |
void | addDependencies (const SignalArray_const< Time > &arr) |
void | addDependency (const SignalBase< Time > &sig) |
void | removeDependency (const SignalBase< Time > &sig) |
void | clearDependency () |
virtual std::ostream & | writeGraph (std::ostream &os) const |
std::ostream & | displayDependencies (std::ostream &os, const int depth=-1, std::string space="", std::string next1="", std::string next2="") const |
bool | needUpdate (const Time &t1) const |
void | setDependencyType (DependencyType dep) |
void | setNeedUpdateFromAllChildren (const bool b=true) |
bool | getNeedUpdateFromAllChildren () const |
void | setPeriodTime (const Time &p) |
Time | getPeriodTime () const |
Public Attributes | |
Time | lastAskForUpdate |
SignalBase< Time > & | leader |
Dependencies | dependencies |
bool | updateFromAllChildren |
DependencyType | dependencyType |
Time | periodTime |
Static Public Attributes | |
static const DependencyType | DEPENDENCY_TYPE_DEFAULT = TIME_DEPENDENT |
static const bool | ALL_READY_DEFAULT = false |
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 |
enum dynamicgraph::TimeDependency::DependencyType |
dynamicgraph::TimeDependency< Time >::TimeDependency | ( | SignalBase< Time > * | sig, |
const DependencyType | dep = DEPENDENCY_TYPE_DEFAULT |
||
) |
dynamicgraph::TimeDependency< Time >::TimeDependency | ( | SignalBase< Time > * | sig, |
const SignalArray_const< Time > & | arr, | ||
const DependencyType | dep = DEPENDENCY_TYPE_DEFAULT |
||
) |
|
inlinevirtual |
void dynamicgraph::TimeDependency< Time >::addDependencies | ( | const SignalArray_const< Time > & | arr | ) |
Referenced by dynamicgraph::TimeDependency< int >::~TimeDependency().
void dynamicgraph::TimeDependency< Time >::addDependency | ( | const SignalBase< Time > & | sig | ) |
Referenced by dynamicgraph::TimeDependency< int >::~TimeDependency().
void dynamicgraph::TimeDependency< Time >::clearDependency | ( | ) |
Referenced by dynamicgraph::TimeDependency< int >::~TimeDependency().
std::ostream & dynamicgraph::TimeDependency< Time >::displayDependencies | ( | std::ostream & | os, |
const int | depth = -1 , |
||
std::string | space = "" , |
||
std::string | next1 = "" , |
||
std::string | next2 = "" |
||
) | const |
|
inline |
|
inline |
bool dynamicgraph::TimeDependency< Time >::needUpdate | ( | const Time & | t1 | ) | const |
Referenced by dynamicgraph::TimeDependency< int >::~TimeDependency().
void dynamicgraph::TimeDependency< Time >::removeDependency | ( | const SignalBase< Time > & | sig | ) |
Referenced by dynamicgraph::TimeDependency< int >::~TimeDependency().
|
inline |
|
inline |
|
inline |
|
virtual |
Reimplemented in dynamicgraph::SignalTimeDependent< T, Time >, and dynamicgraph::SignalTimeDependent< int, int >.
Referenced by dynamicgraph::TimeDependency< int >::~TimeDependency().
|
static |
Dependencies dynamicgraph::TimeDependency< Time >::dependencies |
|
static |
DependencyType dynamicgraph::TimeDependency< Time >::dependencyType |
|
mutable |
SignalBase<Time>& dynamicgraph::TimeDependency< Time >::leader |
|
static |
Time dynamicgraph::TimeDependency< Time >::periodTime |
Referenced by dynamicgraph::TimeDependency< int >::getPeriodTime().
bool dynamicgraph::TimeDependency< Time >::updateFromAllChildren |