20 template <
class Res =
double>
25 Res &
fun(Res &res,
int t) {
29 cout <<
"Inside " << endl;
32 it != inputsig.end(); ++it) {
33 cout << *(*it) << endl;
34 (*it)->access(timedata);
38 it != inputsigV.end(); ++it) {
39 cout << *(*it) << endl;
40 (*it)->access(timedata);
43 return res = (*this)();
46 list<SignalTimeDependent<double, int> *> inputsig;
47 list<SignalTimeDependent<dynamicgraph::Vector, int> *> inputsigV;
51 inputsigV.push_back(&sig);
68 res = appel * timedata;
74 res.fill(appel * timedata);
93 sig4 << sig4 << sig4 << sig6,
"Sig2");
144 cout <<
"Needs update?" << endl << sig1.
needUpdate(2) << endl;
const T & access(const Time &t1)
Signal< dynamicgraph::Matrix, int > sig("matrix")
void add(sigDouble_t &sig)
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