File indexing completed on 2025-04-19 09:09:50
0001 #ifndef ATOOLS_Math_Scaling_H
0002 #define ATOOLS_Math_Scaling_H
0003
0004 #include "ATOOLS/Org/Getter_Function.H"
0005 #include <vector>
0006
0007 namespace ATOOLS {
0008
0009 template <class ValueType>
0010 class Scaling_Base {
0011 public:
0012
0013 typedef ValueType Value_Type;
0014
0015 protected:
0016
0017 std::string m_name;
0018
0019 public:
0020
0021
0022 virtual ~Scaling_Base();
0023
0024
0025 virtual Value_Type operator()(const Value_Type &x);
0026 virtual Value_Type operator[](const Value_Type &y);
0027
0028 static void ShowScalings(const int mode=1);
0029
0030 const std::string Name() const;
0031
0032 };
0033
0034 typedef Getter_Function<Scaling_Base<double>,std::string> Scaling_Getter;
0035
0036 }
0037
0038 #endif