75 insert(ObjectNames[i], objectPtr);
132 return const_cast<IOobject*
>(*iter);
163 return objectsOfName;
186 return objectsOfName;
196 if (iter()->headerClassName() == ClassName)
207 return objectsOfClass;
230 if (iter()->headerClassName() == ClassName)
232 objectNames[count++] = iter.key();
#define forAll(list, i)
Loop across all elements in list.
writeOption
Enumeration defining the write options.
const word & name() const
Return name.
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
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
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.
wordList sortedNames() const
Return the sorted list of names of the IOobjects.
virtual fileNameList readObjects(const objectRegistry &db, const fileName &instance, const fileName &local, word &newInstance) const
Search directory for objects. Used in IOobjectList.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool remove(IOobject &)
Remove an IOobject from the list.
wordList names() const
Return the list of names of the IOobjects.
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
A HashTable specialisation for hashing pointers.
readOption
Enumeration defining the read options.
label size() const
Return number of elements in table.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
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...
bool add(IOobject &)
Add an IOobject to the list.
A class for handling words, derived from string.
const fileOperation & fileHandler()
Get current file handler.
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.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
void setSize(const label)
Reset size of List.
List< Key > sortedToc() const
Return the table of contents as a sorted list.
bool match(const string &, bool literalMatch=false) const
Return true if string matches any of the regular expressions.
bool headerOk()
Read header of local object without type-checking.
bool erase(iterator &)
Erase an hashedEntry specified by given iterator.
List< Key > toc() const
Return the table of contents.
~IOobjectList()
Destructor.
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.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
IOobject * lookup(const word &name) const
Lookup a given name and return IOobject ptr if found else nullptr.
#define InfoInFunction
Report an information message using Foam::Info.