51 word newInstance = instance;
57 if (newInstance.empty())
82 insert(ObjectNames[i], objectPtr);
139 return const_cast<IOobject*
>(*iter);
170 return objectsOfName;
193 return objectsOfName;
203 if (iter()->headerClassName() == ClassName)
214 return objectsOfClass;
237 if (iter()->headerClassName() == ClassName)
239 objectNames[count++] = iter.key();
const Time & time() const
Return time.
wordList names() const
Return the list of names of the IOobjects.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
#define forAll(list, i)
Loop across all elements in list.
writeOption
Enumeration defining the write options.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
List of IOobjects with searching and retrieving facilities.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
wordList sortedNames() const
Return the sorted list of names of the IOobjects.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
ClassName("HashTable")
Define template name and debug.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool remove(IOobject &)
Remove an IOobject from the list.
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
label size() const
Return number of elements in table.
A HashTable specialization for hashing pointers.
readOption
Enumeration defining the read options.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
fileName path() const
Return complete path.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
word findInstancePath(const instant &) const
Search the case for the time directory path.
bool add(IOobject &)
Add an IOobject to the list.
A class for handling words, derived from string.
bool match(const string &, bool literalMatch=false) const
Return true if string matches any of the regular expressions.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
List< Key > toc() const
Return the table of contents.
A wordRe is a word, but can also have a regular expression for matching words.
A wrapper for matching a List of wordRe.
word name(const complex &)
Return a string representation of a complex.
An instant of time. Contains the time value and name.
void setSize(const label)
Reset size of List.
List< Key > sortedToc() const
Return the table of contents as a sorted list.
virtual const fileName & dbDir() const
Local directory path of this objectRegistry relative to the time.
bool headerOk()
Read and check header info.
bool erase(iterator &)
Erase an hashedEntry specified by given iterator.
~IOobjectList()
Destructor.
IOobject * lookup(const word &name) const
Lookup a given name and return IOobject ptr if found else NULL.
Registry of regIOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
IOobjectList(const label nIoObjects=128)
Construct given an initial estimate for the number of entries.
fileNameList readDir(const fileName &, const fileName::Type=fileName::FILE, const bool filtergz=true)
Read a directory and return the entries as a string list.
const word & name() const
Return name.
#define InfoInFunction
Report an information message using Foam::Info.