48 return *lookupMapPtr_;
62 <<
"Lookup map already calculated" <<
nl 117 const word& labelsName,
172 if (lmIter == lm.
end())
193 bool hasError =
false;
200 if (addr[i] < 0 || addr[i] >= maxSize)
208 <<
" contains invalid index label " << addr[i] <<
nl 209 <<
"Valid index labels are 0.." 210 << maxSize-1 <<
endl;
218 else if (!elems.
insert(addr[i]))
224 <<
" contains duplicate index label " << addr[i] <<
endl;
236 << nl << static_cast<const labelList&>(*this);
245 os.
check(
"Ostream& operator<<(Ostream& f, const zone& z");
A simple container for copying or transferring objects of type <T>.
virtual void clearAddressing()
Clear addressing.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
zone(const zone &)
Disallow default bitwise copy construct.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void calcLookupMap() const
Construct the look-up map.
virtual void write(Ostream &) const
Write.
bool insert(const Key &key)
Insert a new entry.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
bool insert(const label &, const T &newElmt)
Insert a new hashedEntry.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
virtual ~zone()
Destructor.
const word & name() const
Return name.
A class for handling words, derived from string.
label localID(const label globalID) const
Map storing the local index for every global index. Used to find.
virtual bool checkDefinition(const bool report=false) const =0
Check zone definition. Return true if in error.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
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...
defineTypeNameAndDebug(combustionModel, 0)
Template functions to aid in the implementation of demand driven data.
#define WarningInFunction
Report a warning using Foam::Warning.
Ostream & operator<<(Ostream &, const ensightPart &)
const Map< label > & lookupMap() const
Return a reference to the look-up map.
void deleteDemandDrivenData(DataPtr &dataPtr)
A HashTable to objects of type <T> with a label key.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
#define InfoInFunction
Report an information message using Foam::Info.