54template<
class ObjectType>
126 return indices_.
empty() ? -1 : indices_.
first();
132 return !indices_.
empty();
139 void update(
const ObjectType& obj)
141 indices_ = obj.indices(key_);
148template<
class ObjectType>
A class that holds the data needed to identify things (zones, patches) in a dynamic mesh.
const labelList & indices() const noexcept
The indices of matching items.
~DynamicID()=default
Destructor.
DynamicID(const word &key, const ObjectType &obj)
Construct from selector name and object.
label index() const
The index of the first matching items, -1 if no matches.
bool active() const noexcept
Has the zone been found.
DynamicID(wordRe &&key, const ObjectType &obj)
Construct from selector name and object.
DynamicID(const wordRe &key, const ObjectType &obj)
Construct from selector name and object.
DynamicID(Istream &is, const ObjectType &obj)
Construct from Istream and object.
DynamicID(const keyType &key, const ObjectType &obj)
Construct from selector name and object.
void update(const ObjectType &obj)
Update.
const wordRe & name() const noexcept
The selector name.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
T & first()
Return the first element of the list.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
A class for handling keywords in dictionaries.
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)