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

regIOobject Class Reference

Inheritance diagram for regIOobject:

Inheritance graph
[legend]
Collaboration diagram for regIOobject:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 62 of file regIOobject.H.


Public Member Functions

 TypeName ("regIOobject")
 Runtime type information.
 regIOobject (const IOobject &)
 Construct from IOobject.
 regIOobject (const regIOobject &)
 Construct as copy.
 regIOobject (const regIOobject &, bool registerCopy)
 Construct as copy, and transfering registry registration to copy.
virtual ~regIOobject ()
void checkIn ()
 Register object with registry.
void checkOut ()
 Check-out object from registry.
bool ownedByRegistry () const
 Is this object owned by the registry.
void store ()
 Transfer ownership of this object to it's registry.
void release ()
 Release ownership of this object from it's registry.
virtual void rename (const word &newName)
 Rename.
Istream & readStream (const word &)
 Return Istream and check object type against that given.
void close ()
 Close Istream.
virtual bool readData (Istream &)
 Virtual readData function.
virtual bool read ()
 Read object.
virtual bool modified () const
 Return true if the object's file has been modified.
virtual bool readIfModified ()
 Read object if modified.
virtual bool writeData (Ostream &) const =0
 Pure virtual writaData function.
virtual bool writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
 Write using given format, version and compression.
virtual bool write () const
 Write using setting from DB.
void operator= (const IOobject &)

Static Public Member Functions

template<class Type>
static Type & store (Type *tPtr)
 Transfer ownership of the given object pointer to it's registry.
template<class Type>
static Type & store (autoPtr< Type > &atPtr)
 Transfer ownership of the given object pointer to it's registry.

Static Public Attributes

static int fileModificationSkew

Constructor & Destructor Documentation

regIOobject ( const IOobject &   ) 

Construct from IOobject.

regIOobject ( const regIOobject &   ) 

Construct as copy.

regIOobject ( const regIOobject &  ,
bool  registerCopy 
)

Construct as copy, and transfering registry registration to copy.

if registerCopy is true

virtual ~regIOobject (  )  [virtual]


Member Function Documentation

TypeName ( "regIOobject"   ) 

Runtime type information.

void checkIn (  ) 

Register object with registry.

void checkOut (  ) 

Check-out object from registry.

bool ownedByRegistry (  )  const [inline]

Is this object owned by the registry.

Definition at line 34 of file regIOobjectI.H.

void store (  )  [inline]

Transfer ownership of this object to it's registry.

Definition at line 40 of file regIOobjectI.H.

References FatalErrorIn.

Type & store ( Type *  tPtr  )  [inline, static]

Transfer ownership of the given object pointer to it's registry.

and return reference to object.

Definition at line 47 of file regIOobjectI.H.

Type & store ( autoPtr< Type > &  atPtr  )  [inline, static]

Transfer ownership of the given object pointer to it's registry.

and return reference to object.

Definition at line 63 of file regIOobjectI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

void release (  )  [inline]

Release ownership of this object from it's registry.

Definition at line 82 of file regIOobjectI.H.

Istream& readStream ( const word &   ) 

Return Istream and check object type against that given.

void close (  ) 

Close Istream.

virtual bool readData ( Istream &   )  [virtual]

Virtual readData function.

Must be defined in derived types for which re-reading is required

Reimplemented in IOdictionary, porousZones, refinementHistory, and featureEdgeMesh.

virtual bool modified (  )  const [virtual]

Return true if the object's file has been modified.

Reimplemented in objectRegistry.

virtual bool readIfModified (  )  [virtual]

Read object if modified.

Reimplemented in objectRegistry.

virtual bool writeData ( Ostream &   )  const [pure virtual]

Pure virtual writaData function.

Must be defined in derived types

Implemented in IOdictionary, IOField, IOList, IOPtrList, objectRegistry, DimensionedField, GeometricField, MeshObject, polyBoundaryMesh, polyBoundaryMeshEntries, ZoneMesh, AverageIOField, refinementHistory, polyTopoChanger, surfacePatchIOList, featureEdgeMesh, Cloud, topoSet, IOPtrList< Foam::porousZone >, IOPtrList< Foam::injector >, IOPtrList< Foam::MRFZone >, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< Type, Foam::GeoMesh< MESH > >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Foam::Vectorector< scalar >, Foam::volMesh >, DimensionedField< Type >, DimensionedField< Foam::Vectorector< scalar >, Foam::pointMesh >, DimensionedField< TransferType::dataType, Foam::volMesh >, DimensionedField< Type, Foam::pointMesh >, GeometricField< Type, Foam::fvsPatchField< Type >, Foam::surfaceMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< TransferType::dataType, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, PatchField, Foam::GeoMesh< MESH > >, GeometricField< scalar, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Type, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< scalar, Foam::fvPatchField< Type >, Foam::volMesh >, MeshObject< Foam::lduMesh, Foam::GAMGAgglomeration >, MeshObject< Foam::fvMesh, Foam::leastSquaresVectors >, MeshObject< Foam::fvMesh, Foam::extendedLeastSquaresVectors >, MeshObject< Foam::fvMesh, Foam::skewCorrectionVectors >, Cloud< Foam::passiveParticle >, Cloud< Foam::indexedParticle >, Cloud< Foam::parcel >, and Cloud< Foam::solidParticle >.

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

virtual bool write (  )  const [virtual]

Write using setting from DB.

Reimplemented in fvMesh.

void operator= ( const IOobject &   ) 

Reimplemented from IOobject.


Member Data Documentation

int fileModificationSkew [static]

Definition at line 100 of file regIOobject.H.


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