10 #ifndef SOT_CORE_BINARYOP_HH 11 #define SOT_CORE_BINARYOP_HH 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(" +
77 const Tin1 &x1 =
SIN1(time);
78 const Tin2 &
x2 =
SIN2(time);
86 #endif // #ifndef SOT_CORE_BINARYOP_HH static std::string getTypeIn1Name(void)
virtual const std::string & getClassName() const
static std::string getTypeIn2Name(void)
void signalRegistration(const SignalArray< int > &signals)
BinaryOp< Operator > Self
BinaryOp(const std::string &name)
SignalPtr< Tin1, int > SIN1
static std::string getTypeOutName(void)
SignalPtr< Tin2, int > SIN2
std::string getDocString() const
SignalTimeDependent< Tout, int > SOUT
static const std::string CLASS_NAME
Tout & computeOperation(Tout &res, int time)