40 bool duplicates =
false;
46 if (iter != hashed.end())
53 hashed.
insert(list[listI], 1);
60 Info<<
nl <<
"WARNING: " << context <<
" with identical names:";
65 Info<<
" " << iter.key();
75 void Foam::meshReader::writeInterfaces(
const objectRegistry& registry)
const 92 ioObj.
note() =
"as yet unsupported interfaces (baffles)";
104 void Foam::meshReader::writeMeshLabelList
107 const word& propertyName,
129 ioObj.
note() =
"persistent data for star-cd <-> foam translation";
151 writeInterfaces(registry);
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return name.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileName objectPath() const
Return complete path + object name.
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
void writeDict(const objectRegistry &, const word &name="cellTable", const fileName &instance="constant") const
Write constant/cellTable for later reuse.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
An STL-conforming iterator.
string & note()
Return non-constant access to the optional note.
labelList origCellId_
Lookup original Cell number for a given cell.
A class for handling words, derived from string.
const word & constant() const
Return constant name.
streamFormat
Enumeration for the format of data in the stream.
An STL-conforming hash table.
const Time & time() const
Return time.
cellTable cellTable_
Cell table persistent data saved as a dictionary.
static Stream & writeEndDivider(Stream &os)
Write the standard end file divider.
labelList cellTableId_
Cell table id for each cell.
static const versionNumber currentVersion
Current version number.
bool writeHeader(Ostream &) const
Write header.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write) const
Write using given format, version and compression.
void writeAux(const objectRegistry &) const
Write auxiliary information.
Registry of regIOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...