62 <<
"Lookup map already calculated" <<
nl
95 lookupMapPtr_(nullptr)
109 lookupMapPtr_(nullptr)
117 const word& labelsName,
124 lookupMapPtr_(nullptr)
138 lookupMapPtr_(nullptr)
152 lookupMapPtr_(nullptr)
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);
271 os.
check(
"Ostream& operator<<(Ostream& f, const zone& z");
#define forAll(list, i)
Loop across all elements in list.
bool insert(const Key &key)
Insert a new entry.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
void size(const label)
Override size to be inconsistent with allocated storage.
void operator=(const UList< label > &)
Assignment to UList operator. Takes linear time.
A HashTable to objects of type <T> with a label key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
const Map< label > & lookupMap() const
Return a reference to the look-up map.
virtual ~zone()
Destructor.
virtual void write(Ostream &) const
Write.
virtual bool checkDefinition(const bool report=false) const =0
Check zone definition. Return true if in error.
void calcLookupMap() const
Construct the look-up map.
Map< label > * lookupMapPtr_
Map of labels in zone for fast location lookup.
label localID(const label globalID) const
Map storing the local index for every global index. Used to find.
zone(const word &name, const labelUList &addr, const label index)
Construct from components.
virtual void clearAddressing()
Clear addressing.
void operator=(const zone &)
Assignment operator.
Template functions to aid in the implementation of demand driven data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
#define InfoInFunction
Report an information message using Foam::Info.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
void deleteDemandDrivenData(DataPtr &dataPtr)
defineTypeNameAndDebug(combustionModel, 0)
Ostream & operator<<(Ostream &, const ensightPart &)
word name(const complex &)
Return a string representation of a complex.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable