Identifies a surface patch/zone by name, patch index and geometricType. More...
Public Member Functions | |
surfZoneIdentifier () | |
Construct null, with index zero. More... | |
surfZoneIdentifier (const label index) | |
Construct null with specified index. More... | |
surfZoneIdentifier (const word &name, const label index, const word &geometricType=word::null) | |
Construct from components. More... | |
surfZoneIdentifier (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
surfZoneIdentifier (const surfZoneIdentifier &p, const label index) | |
Copy construct from another zone identifier, resetting the index. More... | |
virtual | ~surfZoneIdentifier ()=default |
Destructor. More... | |
const word & | name () const |
Return name. More... | |
word & | name () |
Return name for modification. More... | |
const word & | geometricType () const |
Return the geometric type of the patch/zone. More... | |
word & | geometricType () |
Return the geometric type of the patch/zone for modification. More... | |
label | index () const |
Return the index of this patch/zone in the surface mesh. More... | |
label & | index () |
Return the index of this patch/zone for modification. More... | |
void | write (Ostream &os) const |
Write identifier as a dictionary. More... | |
Static Public Attributes | |
static const word | emptyType = "empty" |
The name for an 'empty' type. More... | |
Identifies a surface patch/zone by name, patch index and geometricType.
Definition at line 58 of file surfZoneIdentifier.H.
Construct null, with index zero.
Definition at line 39 of file surfZoneIdentifier.C.
|
explicit |
Construct null with specified index.
Definition at line 47 of file surfZoneIdentifier.C.
surfZoneIdentifier | ( | const word & | name, |
const label | index, | ||
const word & | geometricType = word::null |
||
) |
Construct from components.
Definition at line 56 of file surfZoneIdentifier.C.
surfZoneIdentifier | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 69 of file surfZoneIdentifier.C.
References dict, and dictionary::readIfPresent().
surfZoneIdentifier | ( | const surfZoneIdentifier & | p, |
const label | index | ||
) |
Copy construct from another zone identifier, resetting the index.
Definition at line 84 of file surfZoneIdentifier.C.
|
virtualdefault |
Destructor.
|
inline |
Return name.
Definition at line 119 of file surfZoneIdentifier.H.
Referenced by surfZone::New(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), and surfZone::surfZone().
|
inline |
Return name for modification.
Definition at line 125 of file surfZoneIdentifier.H.
|
inline |
Return the geometric type of the patch/zone.
Definition at line 131 of file surfZoneIdentifier.H.
Referenced by Foam::operator<<(), Foam::operator==(), surfZone::operator==(), and Foam::operator>>().
|
inline |
Return the geometric type of the patch/zone for modification.
Definition at line 137 of file surfZoneIdentifier.H.
|
inline |
Return the index of this patch/zone in the surface mesh.
Definition at line 143 of file surfZoneIdentifier.H.
Referenced by Foam::operator==(), and surfZone::surfZone().
|
inline |
Return the index of this patch/zone for modification.
Definition at line 149 of file surfZoneIdentifier.H.
void write | ( | Ostream & | os | ) | const |
Write identifier as a dictionary.
Definition at line 97 of file surfZoneIdentifier.C.
References Ostream::writeEntry().
Referenced by surfZone::writeDict().
|
static |
The name for an 'empty' type.
Definition at line 77 of file surfZoneIdentifier.H.