48 return *lookupMapPtr_;
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");
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.
label localID(const label globalID) const
Map storing the local index for every global index. Used to find.
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.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
zone(const word &name, const labelUList &addr, const label index)
Construct from components.
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.
void calcLookupMap() const
Construct the look-up map.
virtual ~zone()
Destructor.
A class for handling words, derived from string.
virtual bool checkDefinition(const bool report=false) const =0
Check zone definition. Return true if in error.
List< label > labelList
A List of labels.
const word & name() const
Return name.
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)
void operator=(const UList< label > &)
Assignment to UList operator. Takes linear time.
Template functions to aid in the implementation of demand driven data.
#define WarningInFunction
Report a warning using Foam::Warning.
const Map< label > & lookupMap() const
Return a reference to the look-up map.
Ostream & operator<<(Ostream &, const ensightPart &)
virtual void write(Ostream &) const
Write.
void deleteDemandDrivenData(DataPtr &dataPtr)
void operator=(const zone &)
Assignment operator.
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.
#define InfoInFunction
Report an information message using Foam::Info.