Go to the documentation of this file.
60 template<
class T>
class MinMax;
125 inline explicit constexpr
scalarRange(const scalar val) noexcept;
129 inline
scalarRange(const scalar minVal, const scalar maxVal) noexcept;
160 inline static constexpr
scalarRange ge(const scalar minVal) noexcept;
163 inline static constexpr
scalarRange gt(const scalar minVal) noexcept;
172 inline static constexpr
scalarRange le(const scalar maxVal) noexcept;
175 inline static constexpr
scalarRange lt(const scalar maxVal) noexcept;
184 inline
void clear() noexcept;
187 inline
bool empty() const noexcept;
190 inline
bool valid() const noexcept;
193 inline
bool single() const noexcept;
196 inline scalar
min() const noexcept;
199 inline scalar
max() const noexcept;
203 inline scalar
value() const;
206 inline
bool match(const scalar& val) const;
212 inline
bool operator()(const scalar& val) const;
214 inline constexpr
bool operator==(const
scalarRange& rhs) const noexcept;
215 inline constexpr
bool operator!=(const
scalarRange& rhs) const noexcept;
231 #include "scalarRangeI.H"
bool match(const scalar &val) const
True if the value matches the condition.
static constexpr scalarRange le(const scalar maxVal) noexcept
A less-equals bound.
static constexpr scalarRange gt0() noexcept
A greater-than 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)
constexpr scalarRange() noexcept
Construct an empty (inverse, NONE) range - never matches.
scalar max() const noexcept
The max value of the range.
static constexpr scalarRange zero_one() noexcept
A greater-equals 0, less-equals 1 bound.
Scalar bounds to be used as a unary predicate.
static constexpr scalarRange ge(const scalar minVal) noexcept
A greater-equals bound.
scalar value_type
Type of values the range contains.
OBJstream os(runTime.globalPath()/outputName)
scalar min() const noexcept
The min value of the range.
bool empty() const noexcept
True if range is empty (eg, inverted, NONE)
static constexpr scalarRange ge0() noexcept
A greater-equals zero 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, NONE) range.
static constexpr scalarRange lt(const scalar maxVal) noexcept
A less-than 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 constexpr scalarRange gt(const scalar minVal) noexcept
A greater-than bound.
scalar value() const
A representative (average) value for the range.