boundaryPatch Class Reference

Like polyPatch but without reference to mesh. Used in boundaryMesh to hold data on patches. The patchIdentifier::index is set, but not used. More...

Inheritance diagram for boundaryPatch:
Collaboration diagram for boundaryPatch:

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< boundaryPatchclone () 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...
 
patchIdentifieroperator= (const patchIdentifier &)=default
 Copy assignment. More...
 
patchIdentifieroperator= (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 wordname () const noexcept
 The patch name. More...
 
wordname () 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 wordphysicalType () const noexcept
 The (optional) physical type of the patch. More...
 
wordphysicalType () noexcept
 Modifiable (optional) physical type of the patch. More...
 
const wordListinGroups () const noexcept
 The (optional) groups that the patch belongs to. More...
 
wordListinGroups () 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...
 

Detailed Description

Like polyPatch but without reference to mesh. Used in boundaryMesh to hold data on patches. The patchIdentifier::index is set, but not used.

Source files

Definition at line 51 of file boundaryPatch.H.

Constructor & Destructor Documentation

◆ boundaryPatch() [1/3]

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() [2/3]

boundaryPatch ( const word name,
const dictionary dict,
const label  index 
)

Construct from dictionary.

Definition at line 44 of file boundaryPatch.C.

◆ boundaryPatch() [3/3]

boundaryPatch ( const boundaryPatch p,
const label  index 
)

Copy construct, resetting the index.

Definition at line 56 of file boundaryPatch.C.

References patchIdentifier::index().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

autoPtr<boundaryPatch> clone ( ) const
inline

Clone.

Definition at line 105 of file boundaryPatch.H.

References autoPtr< T >::New().

Here is the call graph for this function:

◆ start() [1/2]

label start ( ) const
inlinenoexcept

◆ start() [2/2]

label& start ( )
inlinenoexcept

The start of the patch (modifiable)

Definition at line 121 of file boundaryPatch.H.

◆ size() [1/2]

label size ( ) const
inlinenoexcept

◆ size() [2/2]

label& size ( )
inlinenoexcept

The size of the patch (modifiable)

Definition at line 131 of file boundaryPatch.H.

◆ range()

labelRange range ( ) const
inlinenoexcept

Return start/size range of this patch.

Definition at line 136 of file boundaryPatch.H.

◆ write()

void write ( Ostream os) const
virtual

Write dictionary entries (without surrounding braces)

Definition at line 66 of file boundaryPatch.C.

References os(), patchIdentifier::write(), and Ostream::writeEntry().

Here is the call graph for this function:

The documentation for this class was generated from the following files: