OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

objectRegistry Class Reference

Inheritance diagram for objectRegistry:

Inheritance graph
[legend]
Collaboration diagram for objectRegistry:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 58 of file objectRegistry.H.


Public Member Functions

 TypeName ("objectRegistry")
 Declare type name for this IOobject.
 objectRegistry (const Time &db, const label nIoObjects=100)
 Construct the time objectRegistry given an initial estimate.
 objectRegistry (const IOobject &io, const label nIoObjects=100)
 Construct a sub-registry given an IObject to describe the registry.
virtual ~objectRegistry ()
const Time & time () const
 Return time.
const objectRegistry & parent () const
 Return the parent objectRegistry.
virtual const fileName & dbDir () const
 Local directory path of this objectRegistry relative to the time.
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 name.
template<class Type>
wordList names () const
 Return the list of names of the IOobjects of given type.
const objectRegistry & subRegistry (const word &name) const
 Lookup and return a const sub-objectRegistry.
template<class Type>
HashTable< const Type * > lookupClass () const
 Lookup and return all the object of the given Type.
template<class Type>
bool foundObject (const word &name) const
 Is the named Type.
template<class Type>
const Type & lookupObject (const word &name) const
 Lookup and return the object of the given Type.
bool checkIn (regIOobject &) const
 Add an regIOobject to registry.
bool checkOut (regIOobject &) const
 Remove an regIOobject from registry.
virtual bool modified () const
 Return true if any of the object's files have been modified.
void readModifiedObjects ()
 Read the objects that have been modified.
virtual bool readIfModified ()
 Read object if modified.
virtual bool writeData (Ostream &) const
 writeData function required by regIOobject but not used
virtual bool writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
 Write the objects.

Constructor & Destructor Documentation

objectRegistry ( const Time &  db,
const label  nIoObjects = 100 
) [explicit]

Construct the time objectRegistry given an initial estimate.

for the number of entries

objectRegistry ( const IOobject &  io,
const label  nIoObjects = 100 
) [explicit]

Construct a sub-registry given an IObject to describe the registry.

and an initial estimate for the number of entries

virtual ~objectRegistry (  )  [virtual]


Member Function Documentation

TypeName ( "objectRegistry"   ) 

Declare type name for this IOobject.

const Time& time (  )  const [inline]

Return time.

Reimplemented from IOobject.

Reimplemented in fvMesh.

Definition at line 123 of file objectRegistry.H.

const objectRegistry& parent (  )  const [inline]

Return the parent objectRegistry.

Definition at line 129 of file objectRegistry.H.

virtual const fileName& dbDir (  )  const [inline, virtual]

Local directory path of this objectRegistry relative to the time.

Reimplemented in Time, and polyMesh.

Definition at line 135 of file objectRegistry.H.

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 name.

wordList names (  )  const

Return the list of names of the IOobjects of given type.

const objectRegistry& subRegistry ( const word &  name  )  const

Lookup and return a const sub-objectRegistry.

HashTable<const Type*> lookupClass (  )  const

Lookup and return all the object of the given Type.

bool foundObject ( const word &  name  )  const

Is the named Type.

const Type& lookupObject ( const word &  name  )  const

Lookup and return the object of the given Type.

bool checkIn ( regIOobject &   )  const

Add an regIOobject to registry.

bool checkOut ( regIOobject &   )  const

Remove an regIOobject from registry.

virtual bool modified (  )  const [virtual]

Return true if any of the object's files have been modified.

Reimplemented from regIOobject.

void readModifiedObjects (  ) 

Read the objects that have been modified.

Reimplemented in Time.

virtual bool readIfModified (  )  [virtual]

Read object if modified.

Reimplemented from regIOobject.

virtual bool writeData ( Ostream &   )  const [inline, virtual]

writeData function required by regIOobject but not used

for this class, write is used instead

Implements regIOobject.

Definition at line 193 of file objectRegistry.H.

virtual bool writeObject ( IOstream::streamFormat  fmt,
IOstream::versionNumber  ver,
IOstream::compressionType  cmp 
) const [virtual]

Write the objects.

Reimplemented from regIOobject.

Reimplemented in Time.


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