Class AllowableRange

Inheritance Relationships

Derived Types

Class Documentation

class AllowableRange

Base class for an allowable range.

Subclassed by opensn::AllowableRangeHighLimit, opensn::AllowableRangeList, opensn::AllowableRangeLowHighLimit, opensn::AllowableRangeLowLimit

Public Functions

template<typename T>
inline bool IsAllowable(const T &value)

Returns true is the value is within the allowable range.

template<typename T>
inline std::string OutOfRangeString(const std::string &scope, const T &value) const

Provides a formatted string of the message to display if a value is out of range.

inline std::string PrintRange()

Prints the allowable constraints to a string.

virtual ~AllowableRange() = default

Protected Functions

virtual bool ChildIsAllowable(Varying value) const = 0
virtual std::string AllowableRangeStr() const = 0