41 #ifndef Foam_zoneIdentifier_H 42 #define Foam_zoneIdentifier_H
bool inGroup(const word &name) const
True if given name is in a group.
zoneIdentifier()
Default construct: name="", index=0.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void push_back(const T &val)
Append an element at the end of the list.
bool contains(const T &val) const
True if the value is contained in the list.
void removeGroup(const word &name)
Remove group for the zone.
A class for handling words, derived from Foam::string.
virtual ~zoneIdentifier()=default
Destructor.
void write(Ostream &os) const
Write (physicalType, inGroups) dictionary entries (without surrounding braces)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label index() const noexcept
The index of this zone in the zone list.
OBJstream os(runTime.globalPath()/outputName)
const word & physicalType() const noexcept
The (optional) type of the zone.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
List< word > wordList
List of word.
Identifies a mesh zone by name and index, with optional physical type and group information.
const word & name() const noexcept
The zone name.
const wordList & inGroups() const noexcept
The (optional) groups that the zone belongs to.
zoneIdentifier & operator=(const zoneIdentifier &)=default
Copy assignment.
void addGroup(const word &name)
Add (unique) group for the zone.