Go to the documentation of this file.
35 #ifndef patchIdentifier_H
36 #define patchIdentifier_H
50 class patchIdentifier;
51 Ostream&
operator<<(Ostream&,
const patchIdentifier&);
A class for handling words, derived from string.
friend Ostream & operator<<(Ostream &, const patchIdentifier &)
patchIdentifier(const word &name, const label index, const word &physicalType=word::null, const wordList &inGroups=wordList())
Construct from components.
label & index()
Return the index of this patch in the boundaryMesh for modification.
word physicalType_
Optional physical type.
List< word > wordList
A List of words.
Identifies 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.
bool inGroup(const word &) const
Test if in group.
const wordList & inGroups() const
Return the optional groups patch belongs to.
virtual ~patchIdentifier()
Destructor.
const word & physicalType() const
Return the optional physical type of the patch.
Ostream & operator<<(Ostream &, const edgeMesh &)
wordList inGroups_
Optional groups patch belongs to.
A list of keyword definitions, which are a keyword followed by any number of values (e....
wordList & inGroups()
Return the optional groups patch belongs to for modification.
word & physicalType()
Return the optional physical type of the patch for modification.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static const word null
An empty word.
label index_
Index of patch in boundary.
word & name()
Return name for modification.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const word & name() const
Return name.
label index() const
Return the index of this patch in the boundaryMesh.
void write(Ostream &) const
Write patchIdentifier as a dictionary.