FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

IOobjectList Class Reference

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

#include <OpenFOAM/IOobjectList.H>


Detailed Description

List of IOobjects with searching and retrieving facilities.

Source files

Definition at line 50 of file IOobjectList.H.

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.

Constructor & Destructor Documentation

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 IOobjectList &   ioOL  )

Construct as copy.

Definition at line 88 of file IOobjectList.C.

~IOobjectList (  )

Definition at line 96 of file IOobjectList.C.


Member Function Documentation

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
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().


The documentation for this class was generated from the following files: