List of IOobjects with searching and retrieving facilities. More...
#include <OpenFOAM/IOobjectList.H>
List of IOobjects with searching and retrieving facilities.
Definition at line 50 of file IOobjectList.H.
Public Member Functions | |
IOobjectList (const label nIoObjects=128) | |
Construct given an initial estimate for the number of entries.
| |
IOobjectList (const objectRegistry &db, const fileName &instance, const fileName &local="") | |
Construct from objectRegistry and instance path.
| |
IOobjectList (const IOobjectList &) | |
Construct as copy.
| |
~IOobjectList () | |
bool | add (IOobject &) |
Add an IOobject to list.
| |
bool | remove (IOobject &) |
Remove an IOobject from list.
| |
IOobject * | lookup (const word &name) const |
Lookup a given name and return IOobject ptr if found else NULL.
| |
IOobjectList | lookupClass (const word &className) const |
Return the list for all IOobjects of given class.
| |
wordList | names () const |
Return the list of names of the IOobjects.
| |
wordList | names (const word &className) const |
Return the list of names of the IOobjects of given class.
|
IOobjectList | ( | const label | nIoObjects = 128
) |
[explicit]
|
Construct given an initial estimate for the number of entries.
Definition at line 33 of file IOobjectList.C.
IOobjectList | ( | const objectRegistry & | db, |
const fileName & | instance, | ||
const fileName & | local = ""
|
||
) |
Construct from objectRegistry and instance path.
Definition at line 40 of file IOobjectList.C.
References objectRegistry::dbDir(), fileName::FILE, Time::findInstancePath(), forAll, IOobject::headerOk(), insert(), Foam::isDir(), IOobject::MUST_READ, IOobject::NO_WRITE, IOobject::path(), Foam::readDir(), and objectRegistry::time().
IOobjectList | ( | const IOobjectList & | ioOL ) |
Construct as copy.
Definition at line 88 of file IOobjectList.C.
~IOobjectList | ( | ) |
Definition at line 96 of file IOobjectList.C.
bool add | ( | IOobject & | io ) |
Add an IOobject to list.
Definition at line 102 of file IOobjectList.C.
References insert(), and IOobject::name().
bool remove | ( | IOobject & | io ) |
Remove an IOobject from list.
Definition at line 108 of file IOobjectList.C.
References HashTable< T *, Key, Hash >::find(), and IOobject::name().
Foam::IOobject * lookup | ( | const word & | name ) | const |
Lookup a given name and return IOobject ptr if found else NULL.
Definition at line 124 of file IOobjectList.C.
References Foam::endl(), and Foam::Info.
Foam::IOobjectList lookupClass | ( | const word & | className ) | const |
Return the list for all IOobjects of given class.
Definition at line 151 of file IOobjectList.C.
References ClassName, Foam::endl(), Foam::Info, HashTable< T, Key, Hash >::insert(), and Foam::name().
Referenced by Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), Foam::MapVolFields(), Foam::ReadFields(), and Foam::UnMapped().
Foam::wordList names | ( | ) | const |
Return the list of names of the IOobjects.
Definition at line 179 of file IOobjectList.C.
Foam::wordList names | ( | const word & | className ) | const |
Return the list of names of the IOobjects of given class.
Definition at line 198 of file IOobjectList.C.
References ClassName, and List< T >::setSize().