60template<
class T>
class MinMax;
203 inline scalar
value() const;
206 inline
bool match(const scalar& val) const;
212 inline
bool operator()(const scalar& val) const;
231#include "scalarRangeI.H"
A min/max value pair with additional methods. In addition to conveniently storing values,...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Scalar bounds to be used as a unary predicate.
void clear() noexcept
Reset to an empty (inverse, NONE) range.
bool single() const noexcept
True if the range bounds represent a single value.
static constexpr scalarRange ge0() noexcept
A greater-equals zero bound.
scalar value() const
A representative (average) value for the range.
static constexpr scalarRange le(const scalar maxVal) noexcept
A less-equals bound.
bool match(const scalar &val) const
True if the value matches the condition.
bool empty() const noexcept
True if range is empty (eg, inverted, NONE)
static bool parse(const std::string &str, scalarRange &range)
Construct by parsing string content.
scalar min() const noexcept
The min value of the range.
scalar value_type
Type of values the range contains.
static constexpr scalarRange ge(const scalar minVal) noexcept
A greater-equals bound.
bool valid() const noexcept
True if range is non-empty.
static constexpr scalarRange gt0() noexcept
A greater-than zero bound.
static constexpr scalarRange lt(const scalar maxVal) noexcept
A less-than bound.
static const scalarRange always
A range that always matches.
scalar max() const noexcept
The max value of the range.
constexpr scalarRange() noexcept
Construct an empty (inverse, NONE) range - never matches.
static constexpr scalarRange gt(const scalar minVal) noexcept
A greater-than bound.
static constexpr scalarRange zero_one() noexcept
A greater-equals 0, less-equals 1 bound.
OBJstream os(runTime.globalPath()/outputName)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)