Scalar bounds to be used as a unary predicate. More...
Public Types | |
typedef scalar | value_type |
Public Member Functions | |
constexpr | scalarRange () noexcept |
constexpr | scalarRange (const scalar val) noexcept |
scalarRange (const scalar minVal, const scalar maxVal) noexcept | |
scalarRange (const MinMax< label > &range) noexcept | |
scalarRange (const MinMax< scalar > &range) noexcept | |
void | clear () noexcept |
bool | empty () const noexcept |
bool | valid () const noexcept |
bool | single () const noexcept |
scalar | min () const noexcept |
scalar | max () const noexcept |
scalar | value () const |
bool | match (const scalar &val) const |
bool | operator() (const scalar &val) const |
constexpr bool | operator== (const scalarRange &rhs) const noexcept |
constexpr bool | operator!= (const scalarRange &rhs) const noexcept |
Static Public Member Functions | |
static bool | parse (const std::string &str, scalarRange &range) |
static scalarRange | parse (const std::string &str) |
static constexpr scalarRange | ge (const scalar minVal) noexcept |
static constexpr scalarRange | gt (const scalar minVal) noexcept |
static constexpr scalarRange | ge0 () noexcept |
static constexpr scalarRange | gt0 () noexcept |
static constexpr scalarRange | le (const scalar maxVal) noexcept |
static constexpr scalarRange | lt (const scalar maxVal) noexcept |
static constexpr scalarRange | zero_one () noexcept |
Static Public Attributes | |
static const scalarRange | always |
Friends | |
Ostream & | operator<< (Ostream &os, const scalarRange &range) |
Scalar bounds to be used as a unary predicate.
The bound can be specified as an "MIN:MAX" range, as a "MIN:" or ":MAX" bound or simply as a single "VALUE".
When defined via the parse() method, the special string "none" can be used to define an empty (inverse) range.
Definition at line 64 of file scalarRange.H.
typedef scalar value_type |
Definition at line 105 of file scalarRange.H.
|
inlineconstexprnoexcept |
Definition at line 36 of file scalarRangeI.H.
Referenced by scalarRange::parse().
|
inlineexplicitconstexprnoexcept |
Definition at line 42 of file scalarRangeI.H.
|
inlinenoexcept |
Definition at line 49 of file scalarRangeI.H.
References clear(), and Foam::equal().
|
explicitnoexcept |
Definition at line 131 of file scalarRange.C.
|
explicitnoexcept |
Definition at line 139 of file scalarRange.C.
|
static |
Definition at line 39 of file scalarRange.C.
References scalarRange::always, Switch::find(), scalarRange::ge(), Switch::good(), scalarRange::le(), range, and scalarRange::scalarRange().
|
static |
Definition at line 116 of file scalarRange.C.
References Foam::endl(), Foam::Info, and range.
|
inlinestaticconstexprnoexcept |
Definition at line 68 of file scalarRangeI.H.
Referenced by scalarRange::parse().
|
inlinestaticconstexprnoexcept |
Definition at line 75 of file scalarRangeI.H.
|
inlinestaticconstexprnoexcept |
Definition at line 82 of file scalarRangeI.H.
|
inlinestaticconstexprnoexcept |
Definition at line 89 of file scalarRangeI.H.
|
inlinestaticconstexprnoexcept |
Definition at line 96 of file scalarRangeI.H.
Referenced by scalarRange::parse().
|
inlinestaticconstexprnoexcept |
Definition at line 102 of file scalarRangeI.H.
|
inlinestaticconstexprnoexcept |
Definition at line 109 of file scalarRangeI.H.
|
inlinenoexcept |
Definition at line 117 of file scalarRangeI.H.
|
inlinenoexcept |
Definition at line 125 of file scalarRangeI.H.
|
inlinenoexcept |
Definition at line 131 of file scalarRangeI.H.
References bool.
|
inlinenoexcept |
Definition at line 137 of file scalarRangeI.H.
|
inlinenoexcept |
Definition at line 143 of file scalarRangeI.H.
|
inlinenoexcept |
Definition at line 149 of file scalarRangeI.H.
|
inline |
Definition at line 155 of file scalarRangeI.H.
|
inline |
Definition at line 178 of file scalarRangeI.H.
References Foam::equal().
|
inline |
Definition at line 196 of file scalarRangeI.H.
References Foam::stringOps::match().
|
inlineconstexprnoexcept |
Definition at line 204 of file scalarRangeI.H.
|
inlineconstexprnoexcept |
Definition at line 214 of file scalarRangeI.H.
|
friend |
|
static |
Definition at line 111 of file scalarRange.H.
Referenced by scalarRange::parse().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.