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();
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
A HashTable specialisation for hashing pointers.
List< word > sortedToc() const
Return the table of contents as a sorted list.
List< word > toc() const
Return the table of contents.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
iterator find(const word &)
Find and return an iterator set at the hashedEntry.
List of IOobjects with searching and retrieving facilities.
~IOobjectList()
Destructor.
IOobjectList(const label nIoObjects=128)
Construct given an initial estimate for the number of entries.
wordList sortedNames() const
Return the sorted list of names of the IOobjects.
bool add(IOobject &)
Add an IOobject to the list.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
IOobject * lookup(const word &name) const
Lookup a given name and return IOobject ptr if found else nullptr.
bool remove(IOobject &)
Remove an IOobject from the list.
wordList names() const
Return the list of names of the IOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
readOption
Enumeration defining the read options.
bool headerOk()
Read header of local object without type-checking.
const word & name() const
Return name.
writeOption
Enumeration defining the write options.
void setSize(const label)
Reset size of List.
A class for handling file names.
virtual fileNameList readObjects(const objectRegistry &db, const fileName &instance, const fileName &local, word &newInstance) const
Search directory for objects. Used in IOobjectList.
Registry of regIOobjects.
bool match(const std::string &) const
True when strings match literally.
A wrapper for matching a List of wordRe.
bool match(const string &, bool literalMatch=false) const
Return true if string matches any of the regular expressions.
A wordRe is a word, but can also have a regular expression for matching words.
A class for handling words, derived from string.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
#define InfoInFunction
Report an information message using Foam::Info.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
const fileOperation & fileHandler()
Get current file handler.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.