48 return *lookupMapPtr_;
56 Info<<
"void zone::calcLookupMap() const: " 57 <<
"Calculating lookup map" 64 <<
"Lookup map already calculated" <<
nl 80 Info<<
"void zone::calcLookupMap() const: " 81 <<
"Finished calculating lookup map" 121 const word& labelsName,
176 if (lmIter == lm.
end())
197 bool hasError =
false;
204 if (addr[i] < 0 || addr[i] >= maxSize)
212 "bool zone::checkDefinition(" 213 "const label maxSize, const bool report) const" 214 ) <<
"Zone " << name_
215 <<
" contains invalid index label " << addr[i] <<
nl 216 <<
"Valid index labels are 0.." 217 << maxSize-1 <<
endl;
225 else if (!elems.
insert(addr[i]))
231 "bool zone::checkDefinition(" 232 "const label maxSize, const bool report) const" 233 ) <<
"Zone " << name_
234 <<
" contains duplicate index label " << addr[i] <<
endl;
246 << nl << static_cast<const labelList&>(*this);
255 os.
check(
"Ostream& operator<<(Ostream& f, const zone& z");
#define SeriousErrorIn(functionName)
Report an error message using Foam::SeriousError.
virtual void write(Ostream &) const
Write.
bool insert(const label &, const T &newElmt)
Insert a new hashedEntry.
virtual ~zone()
Destructor.
A HashTable to objects of type <T> with a label key.
zone(const zone &)
Disallow default bitwise copy construct.
A simple container for copying or transferring objects of type <T>.
void deleteDemandDrivenData(DataPtr &dataPtr)
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
virtual void clearAddressing()
Clear addressing.
label localID(const label globalID) const
Map storing the local index for every global index. Used to find.
Template functions to aid in the implementation of demand driven data.
virtual bool checkDefinition(const bool report=false) const =0
Check zone definition. Return true if in error.
errorManip< error > abort(error &err)
const word & name() const
Return name.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
void calcLookupMap() const
Construct the look-up map.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
List< label > labelList
A List of labels.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
defineTypeNameAndDebug(combustionModel, 0)
const Map< label > & lookupMap() const
Return a reference to the look-up map.
bool insert(const Key &key)
Insert a new entry.