14 template <
typename InputType,
typename OutputType>
25 return typeid(this_type).
name();
28 virtual bool operator()(
const std::shared_ptr<const input_type>& in,
29 std::shared_ptr<const output_type>& out) = 0;
44 virtual bool operator()(
const std::shared_ptr<const input_type>& in,
45 std::shared_ptr<const output_type>& out) {
46 out = std::make_shared<const float>(*in);
74 auto in = std::make_shared<const int>(42);
75 auto out = std::make_shared<const float>(0);
76 bool ok = (*myfun)(in, out);
virtual std::string signature()
virtual std::string signature()=0
virtual ~IMyIFConverter()
IFunctorT< InputType, OutputType > this_type
virtual bool operator()(const std::shared_ptr< const input_type > &in, std::shared_ptr< const output_type > &out)