47 return operation(opNames[op.
first()], op.
second(), tol);
53 const std::pair<word, scalar>& op,
57 return operation(opNames[op.first], op.second, tol);
69 return (this->find(value,
pos) >= 0);
75 return this->matchAny(value);
81 for (
const unary& test : *
this)
95 for (
const unary& test : *
this)
103 return (!this->empty());
114 label i = 0, count = 0;
115 for (
const unary& test : *
this)
136 const label len =
input.size();
141 for (label i=0; i < len; ++i)
159 return this->
found(value);
void resize(const label len)
Adjust allocated size of list.
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
const T1 & first() const noexcept
Return first.
const T2 & second() const noexcept
Return second.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Ostream & operator()() const
Output stream (master only).
std::function< bool(Foam::scalar)> unary
The unary function type for testing a scalar.
static unary operation(const opType op, const scalar opVal, const scalar tol=VSMALL)
Standard comparison method by type.
static const Enum< opType > opNames
Names for the opType enumeration.
bool matchAny(const scalar value) const
Match any condition in the list.
labelList matching(const scalar value) const
Extract list indices for all matches.
bool match(const scalar value) const
Match any condition in the list.
bool matchAll(const scalar value) const
Match all conditions in the list.
A class for handling words, derived from Foam::string.
dimensionedScalar pos(const dimensionedScalar &ds)
static Istream & input(Istream &is, IntRange< T > &range)
labelList invert(const label len, const labelUList &map)
Create an inverse one-to-one mapping.