77 insert(ObjectNames[i], objectPtr);
134 return const_cast<IOobject*
>(*iter);
165 return objectsOfName;
188 return objectsOfName;
198 if (iter()->headerClassName() == ClassName)
209 return objectsOfClass;
232 if (iter()->headerClassName() == ClassName)
234 objectNames[count++] = iter.key();
#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.
const word & name() const
Return name.
bool typeHeaderOk(const bool checkType=true)
Read header (uses typeFilePath to find file) and check header.
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
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.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
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 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.