A 'patch' on surface as subset of triSurface. More...
Public Member Functions | |
surfacePatch (const surfacePatch &)=default | |
Copy construct. More... | |
surfacePatch & | operator= (const surfacePatch &)=default |
Copy assignment. More... | |
surfacePatch () | |
Default construct, with zero start, size, index=-1. More... | |
surfacePatch (const label index) | |
Default construct, with zero start, size, and specified index. More... | |
surfacePatch (const word &name, const label size, const label start, const label index, const word &geometricType=word::null) | |
Construct from components. More... | |
surfacePatch (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
label | start () const noexcept |
Return start label of this patch in the face list. More... | |
label & | start () noexcept |
Return start label of this patch in the face list. More... | |
label | size () const noexcept |
Return size of this patch in the face list. More... | |
label & | size () noexcept |
Return size of this patch in the face list. More... | |
void | write (Ostream &os) const |
Write dictionary, includes surrounding braces. More... | |
operator surfZone () const | |
Conversion to surfZone representation. More... | |
surfacePatch (Istream &is, const label index)=delete | |
Removed(2020-01) Construct from Istream. More... | |
surfacePatch (const word &geometricType, const word &name, const label size, const label start, const label index) | |
Deprecated(2020-01) Construct from components. More... | |
void | writeDict (Ostream &os) const |
Deprecated(2020-01) Ostream output. More... | |
Public Member Functions inherited from geometricSurfacePatch | |
geometricSurfacePatch (const geometricSurfacePatch &)=default | |
Copy construct. More... | |
geometricSurfacePatch & | operator= (const geometricSurfacePatch &)=default |
Copy assignment. More... | |
geometricSurfacePatch () | |
Default construct. Uses name="patch", index=0, type="". More... | |
geometricSurfacePatch (const label index) | |
Construct null with specified index. Uses name="patch", type="". More... | |
geometricSurfacePatch (const word &name, const label index) | |
Construct from mandatory components, type="". More... | |
geometricSurfacePatch (const word &name, const label index, const word &geometricType) | |
Construct from components. More... | |
geometricSurfacePatch (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
geometricSurfacePatch (const surfZoneIdentifier &ident) | |
Implicit conversion from surfZoneIdentifier. More... | |
const word & | name () const noexcept |
The patch/zone name. More... | |
word & | name () noexcept |
Modifiable patch/zone name. More... | |
label | index () const noexcept |
The index of this patch/zone in the surface mesh. More... | |
label & | index () noexcept |
Modifiable index of this patch/zone in the surface mesh. More... | |
const word & | geometricType () const noexcept |
The geometric type of the patch/zone. More... | |
word & | geometricType () noexcept |
Modifiable geometric type of the patch/zone. More... | |
void | write (Ostream &os) const |
Write (geometricType) dictionary entry (without surrounding braces) More... | |
geometricSurfacePatch (Istream &is, const label index)=delete | |
Removed(2020-01) Construct from Istream. More... | |
geometricSurfacePatch (const word &geometricType, const word &name, const label index) | |
Deprecated(2020-01) Construct from components. More... | |
void | writeDict (Ostream &os) const |
Deprecated(2020-01) Write dictionary. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from geometricSurfacePatch | |
static word | defaultName (const label n=-1) |
Default patch name: "patch" or "patchN". More... | |
Static Public Attributes inherited from geometricSurfacePatch | |
static constexpr const char *const | emptyType = "empty" |
The name for an 'empty' type. More... | |
A 'patch' on surface as subset of triSurface.
Definition at line 50 of file surfacePatch.H.
|
default |
Copy construct.
surfacePatch | ( | ) |
Default construct, with zero start, size, index=-1.
Definition at line 28 of file surfacePatch.C.
|
explicit |
Default construct, with zero start, size, and specified index.
Definition at line 34 of file surfacePatch.C.
surfacePatch | ( | const word & | name, |
const label | size, | ||
const label | start, | ||
const label | index, | ||
const word & | geometricType = word::null |
||
) |
Construct from components.
Definition at line 43 of file surfacePatch.C.
surfacePatch | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 58 of file surfacePatch.C.
|
delete |
Removed(2020-01) Construct from Istream.
|
inline |
Deprecated(2020-01) Construct from components.
Definition at line 183 of file surfacePatch.H.
|
default |
Copy assignment.
|
inlinenoexcept |
Return start label of this patch in the face list.
Definition at line 122 of file surfacePatch.H.
Referenced by Foam::operator<<(), and Foam::operator==().
|
inlinenoexcept |
Return start label of this patch in the face list.
Definition at line 130 of file surfacePatch.H.
|
inlinenoexcept |
Return size of this patch in the face list.
Definition at line 138 of file surfacePatch.H.
Referenced by Foam::operator<<(), and Foam::operator==().
|
inlinenoexcept |
Return size of this patch in the face list.
Definition at line 146 of file surfacePatch.H.
void write | ( | Ostream & | os | ) | const |
Write dictionary, includes surrounding braces.
Definition at line 72 of file surfacePatch.C.
References Ostream::beginBlock(), Ostream::endBlock(), Foam::name(), os(), geometricSurfacePatch::write(), and Ostream::writeEntry().
Referenced by surfacePatch::writeDict().
|
inline |
Deprecated(2020-01) Ostream output.
Definition at line 200 of file surfacePatch.H.
References os(), and surfacePatch::write().