116 return _values.size();
130 return _values[index];
157 return _changesKernel;
162 double stringToDouble(
const std::string& s,
const std::string& param)
165 double v = strtod( s.c_str(), &endptr);
166 size_t nInterpretedChars =
static_cast<size_t>(endptr - s.c_str());
167 if(nInterpretedChars < s.size())
170 err <<
"Could not convert '" << s <<
"' in '" << param <<
"' to double number\n";
181 std::string _keyName;
182 std::vector<double> _values;
const std::string & keyName() const
Name of key belonging to this axis.
void parseString(const std::string ¶ms)
parse specification for grid axis from string.
double value(size_t index) const
value[index]
bool changesKernel() const
see setChangesKernel() for Details
void setChangesKernel(bool f)
specify, wether kernel is affected from this key or not.
size_t nValues() const
number of values that belong to this axis
GridAxis(const std::string ¶ms)