54 template<
class ObjectType>
126 return indices_.
empty() ? -1 : indices_.
first();
132 return !indices_.
empty();
141 indices_ = obj.indices(key_);
148 template<
class ObjectType>
149 Ostream& operator<<(Ostream& os, const DynamicID<ObjectType>& obj)
void update(const ObjectType &obj)
Update.
A class for handling keywords in dictionaries.
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)...
bool empty() const noexcept
True if List is empty (ie, size() is zero)
A class that holds the data needed to identify things (zones, patches) in a dynamic mesh...
T & first()
Access first element of the list, position [0].
Begin list [isseparator].
bool active() const noexcept
Has the zone been found.
const labelList & indices() const noexcept
The indices of matching items.
A class for handling words, derived from Foam::string.
~DynamicID()=default
Destructor.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
DynamicID(const wordRe &key, const ObjectType &obj)
Construct from selector name and object.
label index() const
The index of the first matching items, -1 if no matches.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type