dynamic-graph  4.1.0-8-gdab7-dirty
Dynamic graph library
TimeDependency< Time > Class Template Reference

A helper class for setting and specifying dependencies between signals. More...

#include <dynamic-graph/time-dependency.h>

Inheritance diagram for TimeDependency< Time >:

Public Types

typedef std::list< const SignalBase< Time > * > Dependencies
 
enum  DependencyType { TIME_DEPENDENT, BOOL_DEPENDENT, ALWAYS_READY }
 

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)
 
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)
 
virtual std::ostream & writeGraph (std::ostream &os) const
 

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
 

Detailed Description

template<class Time>
class dynamicgraph::TimeDependency< Time >

A helper class for setting and specifying dependencies between signals.

Definition at line 44 of file fwd.hh.


The documentation for this class was generated from the following files: