41 #ifndef Foam_scalarRanges_H 42 #define Foam_scalarRanges_H 58 public List<scalarRange>
73 const std::string& str,
84 const std::string& str,
92 inline bool contains(
const scalar value)
const;
95 bool match(
const scalar value)
const {
return contains(value); }
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
constexpr scalarRanges() noexcept=default
Default construct.
bool match(const scalar value) const
True if the value is matched by any of the sub-ranges.
static scalarRanges parse(const std::string &str, bool report=true)
Construct by parsing string for scalar ranges.
A collection of scalar bounds to be used as a unary predicate.
bool contains(const scalar value) const
True if the value is contained by any of the sub-ranges.
bool operator()(const scalar value) const
For use as a predicate, same as contains()