65 if (maxId < iter.key())
85 iter().lookupOrDefault<word>
106 word lookupName = iter().lookupOrDefault<
word>
114 lookup.
insert(iter.key(), lookupName);
131 iter().lookupOrDefault<word>(
"BoundaryType",
"patch")
160 word bndType(
"patch");
165 operator[](
id).readIfPresent<
word>(
"BoundaryType", bndType);
201 Info<<
"no constant/boundaryRegion information available" <<
endl;
228 "persistent data for thirdParty mesh <-> OpenFOAM translation";
268 word oldName(iter().stream());
273 mapping.
insert(
id, iter().keyword());
281 Info<<
"rename patch: " << iter()
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
void operator=(const HashTable< T, label, Hash< label > > &)
Assignment operator.
A Map of objects of type <Type> with automated input and output. Is a global object; i....
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
string & note()
Return non-constant access to the optional note.
const word & name() const
Return name.
bool writeHeader(Ostream &) const
Write header.
A HashTable to objects of type <T> with a label key.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
The boundaryRegion persistent data saved as a Map<dictionary>.
word boundaryType(const word &name) const
Return BoundaryType corresponding to patch 'name'.
label findIndex(const word &name) const
Return index corresponding to patch 'name'.
~boundaryRegion()
Destructor.
void writeDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant") const
Write constant/boundaryRegion for later reuse.
boundaryRegion()
Construct null.
Map< word > boundaryTypes() const
Return a Map of (id => type)
Map< word > names() const
Return a Map of (id => name)
void readDict(const objectRegistry &, const word &name="boundaryRegion", const fileName &instance="constant")
Read constant/boundaryRegion.
label append(const dictionary &)
Append to the end, return index.
void rename(const dictionary &)
Rename regions.
void operator=(const boundaryRegion &)
Assignment.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
void set(entry *)
Assign a new entry, overwrite any existing entry.
A class for handling file names.
Registry of regIOobjects.
fileName objectPath() const
Return complete path + object name.
bool headerOk()
Read and check header info.
A class for handling words, derived from string.
static const word null
An empty word.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
Operations on lists of strings.