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;
65 op.addSpecificCommands(*
this, commandMap);
73 SignalTimeDependent<Tout, int>
SOUT;
77 const Tin1 &x1 =
SIN1(time);
78 const Tin2 &x2 =
SIN2(time);
Definition: binary-op.hh:40
static const std::string CLASS_NAME
Definition: binary-op.hh:51
static std::string getTypeIn1Name(void)
Definition: binary-op.hh:48
virtual const std::string & getClassName() const
Definition: binary-op.hh:52
SignalTimeDependent< Tout, int > SOUT
Definition: binary-op.hh:73
SignalPtr< Tin2, int > SIN2
Definition: binary-op.hh:72
std::string getDocString() const
Definition: binary-op.hh:53
SignalPtr< Tin1, int > SIN1
Definition: binary-op.hh:68
static std::string getTypeOutName(void)
Definition: binary-op.hh:50
static std::string getTypeIn2Name(void)
Definition: binary-op.hh:49
Tout & computeOperation(Tout &res, int time)
Definition: binary-op.hh:76
BinaryOp(const std::string &name)
Definition: binary-op.hh:55
virtual ~BinaryOp(void)
Definition: binary-op.hh:68
Definition: abstract-sot-external-interface.hh:17