10 #ifndef SOT_CORE_BINARYOP_HH 11 #define SOT_CORE_BINARYOP_HH 18 #include <dynamic-graph/linear-algebra.h> 21 #include <dynamic-graph/all-signals.h> 22 #include <dynamic-graph/entity.h> 29 #include <boost/function.hpp> 39 template <
typename Operator>
42 typedef typename Operator::Tin1 Tin1;
43 typedef typename Operator::Tin2 Tin2;
44 typedef typename Operator::Tout Tout;
57 SIN1(NULL,
BinaryOp::CLASS_NAME +
"(" + name +
")::input(" +
65 op.addSpecificCommands(*
this, commandMap);
71 SignalPtr<Tin1, int>
SIN1;
73 SignalTimeDependent<Tout, int>
SOUT;
77 const Tin1 &x1 =
SIN1(time);
78 const Tin2 &x2 =
SIN2(time);
86 #endif // #ifndef SOT_CORE_BINARYOP_HH static std::string getTypeIn1Name(void)
Definition: binary-op.hh:48
virtual const std::string & getClassName() const
Definition: binary-op.hh:52
Definition: binary-op.hh:40
static std::string getTypeIn2Name(void)
Definition: binary-op.hh:49
BinaryOp(const std::string &name)
Definition: binary-op.hh:55
SignalPtr< Tin1, int > SIN1
Definition: binary-op.hh:68
static std::string getTypeOutName(void)
Definition: binary-op.hh:50
SignalPtr< Tin2, int > SIN2
Definition: binary-op.hh:72
std::string getDocString() const
Definition: binary-op.hh:53
SignalTimeDependent< Tout, int > SOUT
Definition: binary-op.hh:73
static const std::string CLASS_NAME
Definition: binary-op.hh:51
Definition: abstract-sot-external-interface.hh:17
virtual ~BinaryOp(void)
Definition: binary-op.hh:68
Tout & computeOperation(Tout &res, int time)
Definition: binary-op.hh:76