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