10 #ifndef SOT_CORE_UNARYOP_HH
11 #define SOT_CORE_UNARYOP_HH
18 #include <dynamic-graph/all-signals.h>
19 #include <dynamic-graph/entity.h>
28 template <
typename Operator>
31 typedef typename Operator::Tin Tin;
32 typedef typename Operator::Tout Tout;
36 static std::string
getTypeInName(
void) {
return Operator::nameTypeIn(); }
51 signalRegistration(
SIN <<
SOUT);
52 op.addSpecificCommands(*
this, commandMap);
58 SignalPtr<Tin, int>
SIN;
59 SignalTimeDependent<Tout, int>
SOUT;
63 const Tin &x1 =
SIN(time);
Definition: unary-op.hh:29
Tout & computeOperation(Tout &res, int time)
Definition: unary-op.hh:62
static const std::string CLASS_NAME
Definition: unary-op.hh:38
UnaryOp(const std::string &name)
Definition: unary-op.hh:44
static std::string getTypeOutName(void)
Definition: unary-op.hh:37
static std::string getTypeInName(void)
Definition: unary-op.hh:36
SignalTimeDependent< Tout, int > SOUT
Definition: unary-op.hh:59
std::string getDocString() const
Definition: unary-op.hh:42
virtual ~UnaryOp(void)
Definition: unary-op.hh:55
virtual const std::string & getClassName() const
Definition: unary-op.hh:40
SignalPtr< Tin, int > SIN
Definition: unary-op.hh:55
Definition: abstract-sot-external-interface.hh:17