53 const std::pair<word, scalar>& op,
69 return (this->
find(value,
pos) >= 0);
81 for (
const unary& pred : *
this)
95 for (
const unary& pred : *
this)
103 return (!this->empty());
114 label i = 0, count = 0;
115 for (
const unary& pred : *
this)
124 indices.resize(count);
136 const label len = input.
size();
141 for (label i=0; i < len; ++i)
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
Access the first element.
const T2 & second() const noexcept
Access the second element.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
UList(const UList< std::function< bool(Foam::scalar)> > &) noexcept=default
bool empty() const noexcept
bool contains(const scalar value, label pos=0) const
Matches any condition in the list after the offset position.
std::function< bool(Foam::scalar)> unary
The unary function type for testing a scalar.
label find(const scalar value, label pos=0) const
Index of the first matching test for the value.
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
Matches any condition in the list.
labelList matching(const scalar value) const
Extract list indices for all matches.
bool match(const scalar value) const
Matches any condition in the list.
bool matchAll(const scalar value) const
Matches all conditions in the list.
A class for handling words, derived from Foam::string.
dimensionedScalar pos(const dimensionedScalar &ds)
List< label > labelList
A List of labels.
labelList invert(const label len, const labelUList &map)
Create an inverse one-to-one mapping.