An identifier for a surface zone on a meshed surface. More...
Public Member Functions | |
surfZoneIdentifier () | |
Construct null. More... | |
surfZoneIdentifier (const word &name, const label index, const word &geometricType=word::null) | |
Construct from components. More... | |
surfZoneIdentifier (const word &name, const dictionary &, const label index) | |
Construct from dictionary. More... | |
surfZoneIdentifier (const surfZoneIdentifier &, const label index) | |
Construct from another zone identifier, resetting the index. More... | |
virtual | ~surfZoneIdentifier () |
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 zone. More... | |
word & | geometricType () |
Return the geometric type of the zone for modification. More... | |
label | index () const |
Return the index of this zone in the surface mesh. More... | |
void | write (Ostream &) const |
Write surfZoneIdentifier as a dictionary. More... | |
Private Attributes | |
word | name_ |
Name of zone. More... | |
label | index_ |
Index of zone in surface mesh. More... | |
word | geometricType_ |
Type name of zone. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const surfZoneIdentifier &) |
Write surfZoneIdentifier as a dictionary. More... | |
An identifier for a surface zone on a meshed surface.
Similar in concept to a faceZone on the surface, but can also have a "geometricType" as well.
Definition at line 60 of file surfZoneIdentifier.H.
Construct null.
Definition at line 31 of file surfZoneIdentifier.C.
surfZoneIdentifier | ( | const word & | name, |
const label | index, | ||
const word & | geometricType = word::null |
||
) |
Construct from components.
Definition at line 40 of file surfZoneIdentifier.C.
surfZoneIdentifier | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 53 of file surfZoneIdentifier.C.
References dict, and dictionary::readIfPresent().
surfZoneIdentifier | ( | const surfZoneIdentifier & | p, |
const label | index | ||
) |
Construct from another zone identifier, resetting the index.
Definition at line 67 of file surfZoneIdentifier.C.
|
virtual |
Destructor.
Definition at line 80 of file surfZoneIdentifier.C.
|
inline |
Return name.
Definition at line 113 of file surfZoneIdentifier.H.
References surfZoneIdentifier::name_.
Referenced by surfZone::New(), and surfZone::surfZone().
|
inline |
Return name for modification.
Definition at line 119 of file surfZoneIdentifier.H.
References surfZoneIdentifier::name_.
|
inline |
Return the geometric type of the zone.
Definition at line 125 of file surfZoneIdentifier.H.
References surfZoneIdentifier::geometricType_.
Referenced by surfZone::operator==().
|
inline |
Return the geometric type of the zone for modification.
Definition at line 131 of file surfZoneIdentifier.H.
References surfZoneIdentifier::geometricType_.
|
inline |
Return the index of this zone in the surface mesh.
Definition at line 137 of file surfZoneIdentifier.H.
References surfZoneIdentifier::index_.
Referenced by surfZone::surfZone().
void write | ( | Ostream & | os | ) | const |
Write surfZoneIdentifier as a dictionary.
Definition at line 87 of file surfZoneIdentifier.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
Referenced by surfZone::writeDict().
|
friend |
Write surfZoneIdentifier as a dictionary.
void writeDict(Ostream&) const;
|
private |
Name of zone.
Definition at line 65 of file surfZoneIdentifier.H.
Referenced by surfZoneIdentifier::name().
|
private |
Index of zone in surface mesh.
Definition at line 68 of file surfZoneIdentifier.H.
Referenced by surfZoneIdentifier::index().
|
mutableprivate |
Type name of zone.
Definition at line 71 of file surfZoneIdentifier.H.
Referenced by surfZoneIdentifier::geometricType().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.