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