22 template <
class Res =
double>
26 list<SignalTimeDependent<double, int> *> inputsig;
27 list<SignalTimeDependent<dynamicgraph::Vector, int> *> inputsigV;
30 DummyClass(
const std::string &
n) : proname(n),
res(), appel(0), timedata(0) {}
32 Res &
fun(Res &res,
int t) {
36 cout <<
"Inside " << proname <<
" -> " <<
this << endl;
39 it != inputsig.end(); ++it) {
40 cout << *(*it) << endl;
41 (*it)->access(timedata);
45 it != inputsigV.end(); ++it) {
46 cout << *(*it) << endl;
47 (*it)->access(timedata);
50 return res = (*this)();
55 inputsigV.push_back(&sig);
72 res = appel * timedata;
78 res.fill(appel * timedata);
91 sig4 << sig4 << sig4 << sig6,
"Sig2");
130 cout <<
"Needs update?" << endl << sig1.
needUpdate(2) << endl;
131 dgDEBUG(1) <<
"Access sig1(2) " << endl;
134 dgDEBUG(1) <<
"Access sig2(4) " << endl;
137 dgDEBUG(1) <<
"Access sig1(4) " << endl;
const T & access(const Time &t1)
Signal< dynamicgraph::Matrix, int > sig("matrix")
void setDependencyType(DependencyType dep)
void setReady(const bool sready=true)
dynamicgraph::Vector & fun(dynamicgraph::Vector &res, double)
virtual bool needUpdate(const Time &t) const
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)
std::ostream & displayDependencies(std::ostream &os, const int depth=-1, std::string space="", std::string next1="", std::string next2="") const