Go to the documentation of this file.
37 #ifndef patchIdentifier_H
38 #define patchIdentifier_H
50 class patchIdentifier;
51 Ostream&
operator<<(Ostream& os,
const patchIdentifier&
p);
69 mutable word physicalType_;
124 return physicalType_;
130 return physicalType_;
A class for handling words, derived from Foam::string.
patchIdentifier(const word &name, const label index, const word &physicalType=word::null, const wordList &inGroups=wordList())
Construct from components.
label & index()
Modifiable the index of this patch in the boundaryMesh.
virtual ~patchIdentifier()=default
Destructor.
List< word > wordList
A List of words.
Identifies a patch by name, patch index and physical type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
friend Ostream & operator<<(Ostream &os, const patchIdentifier &p)
const wordList & inGroups() const
The optional groups that the patch belongs to.
bool inGroup(const word &name) const
Check if the patch is in named group.
const word & physicalType() const
The optional physical type of the patch.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
wordList & inGroups()
Modifiable optional groups that the patch belongs to.
word & physicalType()
Modifiable optional physical type of the patch.
static const word null
An empty word.
void write(Ostream &os) const
Write patchIdentifier as a dictionary.
word & name()
Modifiable patch name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const word & name() const
Return the patch name.
label index() const
The index of this patch in the boundaryMesh.
Ostream & operator<<(Ostream &, const boundaryPatch &)