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

objectRegistry Class Reference

Registry of regIOobjects. More...

Inheritance diagram for objectRegistry:
Collaboration diagram for objectRegistry:

List of all members.


Public Member Functions

 TypeName ("objectRegistry")
 Declare type name for this IOobject.
 objectRegistry (const Time &db, const label nIoObjects=128)
 Construct the time objectRegistry given an initial estimate.
 objectRegistry (const IOobject &io, const label nIoObjects=128)
 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.
label getEvent () const
 Return new event number.
virtual void rename (const word &newName)
 Rename.
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.

Detailed Description

Registry of regIOobjects.

Source files

Definition at line 45 of file objectRegistry.H.


Constructor & Destructor Documentation

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

Construct the time objectRegistry given an initial estimate.

for the number of entries

Definition at line 29 of file objectRegistry.C.

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

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

and an initial estimate for the number of entries

Definition at line 56 of file objectRegistry.C.

~objectRegistry (  )  [virtual]

Definition at line 74 of file objectRegistry.C.


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 113 of file objectRegistry.H.

Referenced by fieldAverage::addMeanField(), fieldMinMax::calcMinMaxFields(), spray::inject(), solidParticle::move(), Foam::polyMeshZipUpCells(), directMappedPatchBase::samplePolyPatch(), and polyMesh::updateMesh().

Here is the caller graph for this function:

const objectRegistry& parent (  )  const [inline]

Return the parent objectRegistry.

Definition at line 119 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 125 of file objectRegistry.H.

Referenced by IOobject::path().

Here is the caller graph for this function:

Foam::wordList names (  )  const [inline]

Return the list of names of the IOobjects.

Definition at line 96 of file objectRegistry.C.

References regIOobject::checkOut().

Here is the call graph for this function:

Foam::wordList names ( const word &  className  )  const

Return the list of names of the IOobjects of given class name.

Definition at line 110 of file objectRegistry.C.

wordList names (  )  const [inline]

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

const Foam::objectRegistry & subRegistry ( const word &  name  )  const

Lookup and return a const sub-objectRegistry.

Definition at line 130 of file objectRegistry.C.

Foam::HashTable< const Type * > lookupClass (  )  const [inline]

Lookup and return all the object of the given Type.

Definition at line 46 of file objectRegistryTemplates.C.

Referenced by Foam::mapClouds().

Here is the caller graph for this function:

bool foundObject ( const word &  name  )  const [inline]

Is the named Type.

Definition at line 67 of file objectRegistryTemplates.C.

Referenced by fieldAverage::addMeanField(), fieldMinMax::calcMinMaxFields(), and polyMesh::updateMesh().

Here is the caller graph for this function:

const Type & lookupObject ( const word &  name  )  const [inline]

Foam::label getEvent (  )  const

Return new event number.

Definition at line 138 of file objectRegistry.C.

Referenced by regIOobject::rename().

Here is the caller graph for this function:

void rename ( const word &  newName  )  [virtual]

Rename.

Reimplemented from regIOobject.

Definition at line 240 of file objectRegistry.C.

bool checkIn ( regIOobject &  io  )  const

Add an regIOobject to registry.

Definition at line 174 of file objectRegistry.C.

bool checkOut ( regIOobject &  io  )  const

Remove an regIOobject from registry.

Definition at line 187 of file objectRegistry.C.

Referenced by regIOobject::upToDate().

Here is the caller graph for this function:

bool modified (  )  const [virtual]

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

Reimplemented from regIOobject.

Definition at line 258 of file objectRegistry.C.

void readModifiedObjects (  ) 

Read the objects that have been modified.

Reimplemented in Time.

Definition at line 272 of file objectRegistry.C.

Referenced by objectRegistry::writeObject().

Here is the caller graph for this function:

bool readIfModified (  )  [virtual]

Read object if modified.

Reimplemented from regIOobject.

Definition at line 289 of file objectRegistry.C.

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

writeData function required by regIOobject but not used

for this class, write is used instead

Implements regIOobject.

Reimplemented in triSurfaceMesh.

Definition at line 189 of file objectRegistry.H.

References notImplemented.


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