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 | start () const noexcept |
| The start of the patch. More... | |
| label & | start () noexcept |
| The start of the patch (modifiable) More... | |
| label | size () const noexcept |
| The size of the patch. More... | |
| label & | size () noexcept |
| The size of the patch (modifiable) More... | |
| labelRange | range () const noexcept |
| Return start/size range of this patch. More... | |
| virtual void | write (Ostream &os) const |
| Write dictionary entries (without surrounding braces) More... | |
Public Member Functions inherited from patchIdentifier | |
| patchIdentifier (const patchIdentifier &)=default | |
| Copy construct. More... | |
| patchIdentifier (patchIdentifier &&)=default | |
| Move construct. More... | |
| patchIdentifier & | operator= (const patchIdentifier &)=default |
| Copy assignment. More... | |
| patchIdentifier & | operator= (patchIdentifier &&)=default |
| Move assignment. More... | |
| virtual | ~patchIdentifier ()=default |
| Destructor. More... | |
| patchIdentifier () | |
| Default construct: 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 newIndex) | |
| Copy construct, resetting the index (if non-negative) More... | |
| patchIdentifier (patchIdentifier &&ident, const label newIndex) | |
| Move construct, resetting the index (if non-negative) 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 | addGroup (const word &name) |
| Add (unique) group for the patch. More... | |
| void | removeGroup (const word &name) |
| Remove group for the patch. More... | |
| void | write (Ostream &os) const |
| Write (physicalType, inGroups) dictionary entries (without surrounding braces) More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from patchIdentifier | |
| 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 51 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 29 of file boundaryPatch.C.
| boundaryPatch | ( | const word & | name, |
| const dictionary & | dict, | ||
| const label | index | ||
| ) |
Construct from dictionary.
Definition at line 44 of file boundaryPatch.C.
| boundaryPatch | ( | const boundaryPatch & | p, |
| const label | index | ||
| ) |
Copy construct, resetting the index.
Definition at line 56 of file boundaryPatch.C.
References patchIdentifier::index().

|
inline |
Clone.
Definition at line 105 of file boundaryPatch.H.
References autoPtr< T >::New().

|
inlinenoexcept |
The start of the patch.
Definition at line 116 of file boundaryPatch.H.
Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), boundaryMesh::deletePatch(), boundaryMesh::read(), boundaryMesh::readTriSurface(), boundaryMesh::whichPatch(), and boundaryMesh::writeTriSurface().

|
inlinenoexcept |
The start of the patch (modifiable)
Definition at line 121 of file boundaryPatch.H.
|
inlinenoexcept |
The size of the patch.
Definition at line 126 of file boundaryPatch.H.
Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), boundaryMesh::deletePatch(), boundaryMesh::read(), boundaryMesh::readTriSurface(), and boundaryMesh::whichPatch().

|
inlinenoexcept |
The size of the patch (modifiable)
Definition at line 131 of file boundaryPatch.H.
|
inlinenoexcept |
Return start/size range of this patch.
Definition at line 136 of file boundaryPatch.H.
|
virtual |
Write dictionary entries (without surrounding braces)
Definition at line 66 of file boundaryPatch.C.
References os(), patchIdentifier::write(), and Ostream::writeEntry().
