39#ifndef patchIdentifier_H
40#define patchIdentifier_H
82 ?
word(
"patch",
false)
83 :
word(
"patch" + std::to_string(
n),
false)
162 return physicalType_;
168 return physicalType_;
199Ostream&
operator<<(Ostream&
os,
const patchIdentifier& ident);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool found(const T &val, label pos=0) const
True if the value if found in the list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Identifies a patch by name and index, with optional physical type and group information.
word & name() noexcept
Modifiable patch name.
const word & physicalType() const noexcept
The (optional) physical type of the patch.
virtual ~patchIdentifier()=default
Destructor.
patchIdentifier & operator=(const patchIdentifier &)=default
Copy assignment.
patchIdentifier()
Default construct. Uses name="", index=0.
bool inGroup(const word &name) const
True if given name is in a group.
label & index() noexcept
Modifiable index of this patch in the boundaryMesh.
const wordList & inGroups() const noexcept
The (optional) groups that the patch belongs to.
label index() const noexcept
The index of this patch in the boundaryMesh.
word & physicalType() noexcept
Modifiable (optional) physical type of the patch.
wordList & inGroups() noexcept
Modifiable (optional) groups that the patch belongs to.
const word & name() const noexcept
The patch name.
static word defaultName(const label n=-1)
Default patch name: "patch" or "patchN".
patchIdentifier(const patchIdentifier &)=default
Copy construct.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< word > wordList
A List of words.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)