Go to the documentation of this file.
52 template<
class ObjectType>
59 template<
class ObjectType>
113 return indices_.empty() ? -1 : indices_.first();
119 return !indices_.empty();
126 void update(
const ObjectType& obj)
128 indices_ = obj.indices(key_);
134 friend Ostream& operator<< <ObjectType>
141 template<
class ObjectType>
DynamicID(const keyType &key, const ObjectType &obj)
Construct from name.
const labelList & indices() const
Return indices of matching zones.
A class that holds the data needed to identify things (zones, patches) in a dynamic mesh.
void update(const ObjectType &obj)
Update.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A class for handling keywords in dictionaries.
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.
~DynamicID()=default
Destructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const keyType & name() const
Return name.
Begin list [isseparator].
DynamicID(Istream &is, const ObjectType &obj)
Construct from Istream.
bool active() const
Has the zone been found.
label index() const
Return index of first matching zone.