54 const word& physicalType,
74 dict.readIfPresent(
"physicalType", physicalType_);
75 dict.readIfPresent(
"inGroups", inGroups_);
96 zoneIdentifier&& ident,
100 zoneIdentifier(std::move(ident))
113 label idx =
name.empty() ? -1 : inGroups_.find(
name);
117 for (label i = idx + 1; i < inGroups_.size(); ++i)
119 if (inGroups_[i] !=
name)
121 inGroups_[idx] = std::move(inGroups_[i]);
125 inGroups_.resize(idx);
132 if (!physicalType_.empty())
137 if (!inGroups_.empty())
140 inGroups_.writeList(
os, 0);
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
Identifies a mesh zone by name and index, with optional physical type and group information.
const word & physicalType() const noexcept
The (optional) type of the zone.
zoneIdentifier()
Default construct: name="", index=0.
zoneIdentifier(const zoneIdentifier &)=default
Copy construct.
const wordList & inGroups() const noexcept
The (optional) groups that the zone belongs to.
void write(Ostream &os) const
Write (physicalType, inGroups) dictionary entries (without surrounding braces).
label index() const noexcept
The index of this zone in the zone list.
const word & name() const noexcept
The zone name.
void removeGroup(const word &name)
Remove group for the zone.
OBJstream os(runTime.globalPath()/outputName)
List< word > wordList
List of word.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.