Go to the documentation of this file.
51 word newInstance = instance;
57 if (newInstance.empty())
82 insert(ObjectNames[i], objectPtr);
136 Info<<
"IOobjectList::lookup : found "
140 return const_cast<IOobject*
>(*iter);
146 Info<<
"IOobjectList::lookup : could not find "
165 Info<<
"IOobjectList::lookupRe : found " << iter.key() <<
endl;
168 objectsOfName.insert(iter.key(),
new IOobject(*iter()));
172 return objectsOfName;
188 Info<<
"IOobjectList::lookupRe : found " << iter.key() <<
endl;
191 objectsOfName.insert(iter.key(),
new IOobject(*iter()));
195 return objectsOfName;
205 if (iter()->headerClassName() ==
ClassName)
209 Info<<
"IOobjectList::lookupClass : found "
210 << iter.key() <<
endl;
213 objectsOfClass.insert(iter.key(),
new IOobject(*iter()));
217 return objectsOfClass;
240 if (iter()->headerClassName() ==
ClassName)
242 objectNames[count++] = iter.key();
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
A class for handling words, derived from string.
A class for handling file names.
word findInstancePath(const instant &) const
Search the case for the time directory path.
#define forAll(list, i)
Loop across all elements in list.
const Time & time() const
Return time.
A wrapper for matching a List of wordRe.
wordList sortedNames() const
Return the sorted list of names of the IOobjects.
Ostream & endl(Ostream &os)
Add newline and flush stream.
wordList names() const
Return the list of names of the IOobjects.
A wordRe is a word, but can also have a regular expression for matching words.
bool match(const std::string &) const
True when strings match literally.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Registry of regIOobjects.
bool headerOk()
Read and check header info.
virtual const fileName & dbDir() const
Local directory path of this objectRegistry relative to the time.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
writeOption
Enumeration defining the write options.
const word & name() const
Return name.
bool add(IOobject &)
Add an IOobject to the list.
IOobject * lookup(const word &name) const
Lookup a given name and return IOobject ptr if found else NULL.
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
List of IOobjects with searching and retrieving facilities.
bool remove(IOobject &)
Remove an IOobject from the list.
void setSize(const label)
Reset size of List.
IOobjectList(const label nIoObjects=128)
Construct given an initial estimate for the number of entries.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
A HashTable specialization for hashing pointers.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool match(const string &, bool literalMatch=false) const
Return true if string matches any of the regular expressions.
An instant of time. Contains the time value and name.
readOption
Enumeration defining the read options.
fileNameList readDir(const fileName &, const fileName::Type=fileName::FILE, const bool filtergz=true)
Read a directory and return the entries as a string list.
~IOobjectList()
Destructor.
fileName path() const
Return complete path.
word name(const complex &)
Return a string representation of a complex.
timeIndices insert(timeIndex, timeDirs[timeI].value())