60#ifndef LASS_GUARDIAN_OF_INCLUSION_PRIM_PARAMETER_POLICY_H
61#define LASS_GUARDIAN_OF_INCLUSION_PRIM_PARAMETER_POLICY_H
76class ParameterError:
public util::ExceptionMixin<ParameterError>
79 ParameterError(std::string msg, std::string loc): util::ExceptionMixin<ParameterError>(std::move(msg), std::move(loc)) {}
80 ~ParameterError() noexcept {}
97 static void enforceRange(
const T& iT,
const T& iMin,
const T& iMax)
99 if (!(iT >= iMin && iT <= iMax))
101 LASS_THROW_EX(ParameterError,
"parameter '" << iT <<
"' outside valid range ["
102 << iMin <<
", " << iMax <<
"].");
107 static void enforceRange(
const T& iT,
const T& iMin)
111 LASS_THROW_EX(ParameterError,
"parameter '" << iT <<
"' outside valid range ["
112 << iMin <<
", +inf].");
133 template <
typename T>
134 static void enforceRange(
const T& ,
const T& ,
const T& )
138 template <
typename T>
139 static void enforceRange(
const T& ,
const T& )
set of geometrical primitives
Library for Assembled Shared Sources.
Parameters supplied to functions must be in the range of the primitive.
Parameters supplied to functions can go out of the range of the primitive.