Like polyPatch but without reference to mesh. Used in boundaryMesh to hold data on patches. The patchIdentifier::index is set, but not used. More...
Public Member Functions | |
boundaryPatch (const word &name, const label index, const label size, const label start, const word &physicalType=word::null) | |
Construct from components. More... | |
boundaryPatch (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
boundaryPatch (const boundaryPatch &p, const label index) | |
Copy construct, resetting the index. More... | |
autoPtr< boundaryPatch > | clone () const |
Clone. More... | |
label | size () const |
label & | size () |
label | start () const |
label & | start () |
virtual void | write (Ostream &os) const |
Write dictionary entries (without surrounding braces) More... | |
![]() | |
patchIdentifier (const patchIdentifier &)=default | |
Copy construct. More... | |
patchIdentifier & | operator= (const patchIdentifier &)=default |
Copy assignment. More... | |
virtual | ~patchIdentifier ()=default |
Destructor. More... | |
patchIdentifier () | |
Default construct. Uses name="", index=0. More... | |
patchIdentifier (const word &name, const label index) | |
Construct from mandatory components. More... | |
patchIdentifier (const word &name, const label index, const word &physicalType, const wordList &inGroups=wordList()) | |
Construct from components. More... | |
patchIdentifier (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
patchIdentifier (const patchIdentifier &ident, const label index) | |
Copy construct, resetting the index. More... | |
const word & | name () const noexcept |
The patch name. More... | |
word & | name () noexcept |
Modifiable patch name. More... | |
label | index () const noexcept |
The index of this patch in the boundaryMesh. More... | |
label & | index () noexcept |
Modifiable index of this patch in the boundaryMesh. More... | |
const word & | physicalType () const noexcept |
The (optional) physical type of the patch. More... | |
word & | physicalType () noexcept |
Modifiable (optional) physical type of the patch. More... | |
const wordList & | inGroups () const noexcept |
The (optional) groups that the patch belongs to. More... | |
wordList & | inGroups () noexcept |
Modifiable (optional) groups that the patch belongs to. More... | |
bool | inGroup (const word &name) const |
True if given name is in a group. More... | |
void | write (Ostream &os) const |
Additional Inherited Members | |
![]() | |
static word | defaultName (const label n=-1) |
Default patch name: "patch" or "patchN". More... | |
Like polyPatch but without reference to mesh. Used in boundaryMesh to hold data on patches. The patchIdentifier::index is set, but not used.
Definition at line 54 of file boundaryPatch.H.
boundaryPatch | ( | const word & | name, |
const label | index, | ||
const label | size, | ||
const label | start, | ||
const word & | physicalType = word::null |
||
) |
Construct from components.
Definition at line 36 of file boundaryPatch.C.
boundaryPatch | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 51 of file boundaryPatch.C.
boundaryPatch | ( | const boundaryPatch & | p, |
const label | index | ||
) |
Copy construct, resetting the index.
Definition at line 63 of file boundaryPatch.C.
References patchIdentifier::index().
|
inline |
Clone.
Definition at line 94 of file boundaryPatch.H.
References autoPtr< T >::New().
|
inline |
Definition at line 102 of file boundaryPatch.H.
Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), boundaryMesh::deletePatch(), boundaryMesh::read(), boundaryMesh::readTriSurface(), and boundaryMesh::whichPatch().
|
inline |
Definition at line 107 of file boundaryPatch.H.
|
inline |
Definition at line 112 of file boundaryPatch.H.
Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), boundaryMesh::deletePatch(), boundaryMesh::read(), boundaryMesh::readTriSurface(), boundaryMesh::whichPatch(), and boundaryMesh::writeTriSurface().
|
inline |
Definition at line 117 of file boundaryPatch.H.
|
virtual |
Write dictionary entries (without surrounding braces)
Definition at line 73 of file boundaryPatch.C.
References os(), patchIdentifier::write(), and Ostream::writeEntry().