Go to the documentation of this file.
56 Info<<
"void zone::calcLookupMap() const: "
57 <<
"Calculating lookup map"
64 <<
"Lookup map already calculated" <<
nl
75 lm.insert(addr[i], i);
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 <<
" contains invalid index label " << addr[i] <<
nl
213 <<
"Valid index labels are 0.."
214 << maxSize-1 <<
endl;
222 else if (!elems.
insert(addr[i]))
228 <<
" contains duplicate index label " << addr[i] <<
endl;
240 << nl << static_cast<const labelList&>(*
this);
249 os.
check(
"Ostream& operator<<(Ostream& f, const zone& z");
A class for handling words, derived from string.
List< label > labelList
A List of labels.
void calcLookupMap() const
Construct the look-up map.
#define forAll(list, i)
Loop across all elements in list.
Template functions to aid in the implementation of demand driven data.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A HashTable to objects of type <T> with a label key.
virtual void clearAddressing()
Clear addressing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple container for copying or transferring objects of type <T>.
void deleteDemandDrivenData(DataPtr &dataPtr)
const Map< label > & lookupMap() const
Return a reference to the look-up map.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual ~zone()
Destructor.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual void write(Ostream &) const
Write.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManip< error > abort(error &err)
const word & name() const
Return name.
Map< label > * lookupMapPtr_
Map of labels in zone for fast location lookup.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool insert(const Key &key)
Insert a new entry.
label localID(const label globalID) const
Map storing the local index for every global index. Used to find.
zone(const zone &)
Disallow default bitwise copy construct.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
virtual bool checkDefinition(const bool report=false) const =0
Check zone definition. Return true if in error.