/** * Fix.cc * * Created on: 23 jun. 2018 * Author: AKKA IS */ #include "Fix.hh" #include template int _fix(const Type& el) { return (int)el; } template std::vector _fix(const std::vector& el) { std::vector result; for (typename std::vector::const_iterator it = el.begin(); it != el.end(); ++it) { result.push_back((int)(*it)); } return result; } int Fix(const float& el) { return _fix(el); } int Fix(const double& el) { return _fix(el); } int Fix(const long double& el) { return _fix(el); } int Fix(const int& el) { return _fix(el); } int Fix(const short& el) { return _fix(el); } std::vector Fix(const std::vector& el) { return _fix(el); } std::vector Fix(const std::vector& el) { return _fix(el); } std::vector Fix(const std::vector& el) { return _fix(el); } std::vector Fix(const std::vector& el) { return _fix(el); } std::vector Fix(const std::vector& el) { return _fix(el); }