OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

IOobjectList Class Reference

List of IOobjects with searching and retrieving facilities. More...

Inheritance diagram for IOobjectList:
Collaboration diagram for IOobjectList:

List of all members.


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.

Detailed Description

List of IOobjects with searching and retrieving facilities.

Source files

Definition at line 45 of file IOobjectList.H.


Constructor & Destructor Documentation

IOobjectList ( const label  nIoObjects = 128  )  [explicit]

Construct given an initial estimate for the number of entries.

Definition at line 25 of file IOobjectList.C.

IOobjectList ( const objectRegistry &  db,
const fileName &  instance,
const fileName &  local = "" 
)

Construct from objectRegistry and instance path.

Definition at line 32 of file IOobjectList.C.

IOobjectList ( const IOobjectList &  ioOL  ) 

Construct as copy.

Definition at line 80 of file IOobjectList.C.

~IOobjectList (  ) 

Definition at line 88 of file IOobjectList.C.


Member Function Documentation

bool add ( IOobject &  io  ) 

Add an IOobject to list.

Definition at line 94 of file IOobjectList.C.

bool remove ( IOobject &  io  ) 

Remove an IOobject from list.

Definition at line 100 of file IOobjectList.C.

References HashTable< IOobject *, word, string::hash >::insert(), and IOobject::name().

Here is the call graph for this function:

Foam::IOobject * lookup ( const word &  name  )  const

Lookup a given name and return IOobject ptr if found else NULL.

Definition at line 116 of file IOobjectList.C.

Foam::IOobjectList lookupClass ( const word &  className  )  const

Return the list for all IOobjects of given class.

Definition at line 143 of file IOobjectList.C.

Referenced by Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), Foam::MapVolFields(), Foam::ReadFields(), and Foam::UnMapped().

Here is the caller graph for this function:

Foam::wordList names (  )  const

Return the list of names of the IOobjects.

Definition at line 171 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 190 of file IOobjectList.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd