14 namespace dg = ::dynamicgraph;
20 #define REGISTER_UNARY_OP(OpType, name) \
22 const std::string UnaryOp<OpType>::CLASS_NAME = std::string(#name); \
23 Entity *regFunction_##name(const std::string &objname) { \
24 return new UnaryOp<OpType>(objname); \
26 EntityRegisterer regObj_##name(std::string(#name), ®Function_##name)
88 #define REGISTER_BINARY_OP(OpType, name) \
90 const std::string BinaryOp<OpType>::CLASS_NAME = std::string(#name); \
91 Entity *regFunction_##name(const std::string &objname) { \
92 return new BinaryOp<OpType>(objname); \
94 EntityRegisterer regObj_##name(std::string(#name), ®Function_##name)
126 #define REGISTER_VARIADIC_OP(OpType, name) \
128 const std::string VariadicOp<OpType>::CLASS_NAME = std::string(#name); \
129 Entity *regFunction_##name(const std::string &objname) { \
130 return new VariadicOp<OpType>(objname); \
132 EntityRegisterer regObj_##name(std::string(#name), ®Function_##name)