56 bool Foam::fileFormats::TRIsurfaceFormatCore::read
68 <<
"Cannot read file " << filename
82 lookup.
insert(
"zoneI", zoneI);
86 string line = this->getLineNoComment(is);
104 if (!lineStream)
break;
133 word rawName(lineStream);
134 word name(
"zone" + rawName(1, rawName.size()-1));
137 if (fnd != lookup.
end())
148 zoneI = dynSizes.
size();
165 dynSizes[nZone] = dynSizes[zoneI];
174 points_.transfer(dynPoints);
175 zoneIds_.transfer(dynZones);
176 sizes_.transfer(dynSizes);
Istream and Ostream manipulators taking arguments.
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void setCapacity(const label)
Alter the size of the underlying storage.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
Input from memory buffer stream.
void size(const label)
Override size to be inconsistent with allocated storage.
A class for handling file names.
A class for handling words, derived from string.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable