Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Attributes | Friends | List of all members
regIOobject Class Referenceabstract

regIOobject is an abstract class derived from IOobject to handle automatic object registration with the objectRegistry. More...

Inherits IOobject.

Inherited by AveragingMethod< Foam::Vector >, AveragingMethod< scalar >, BlendedInterfacialModel< Foam::dragModel >, BlendedInterfacialModel< Foam::heatTransferModel >, BlendedInterfacialModel< Foam::liftModel >, BlendedInterfacialModel< Foam::turbulentDispersionModel >, BlendedInterfacialModel< Foam::virtualMassModel >, BlendedInterfacialModel< Foam::wallLubricationModel >, CompactIOList< face, label >, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, triSurfacePointGeoMesh >, DimensionedField< Type, Foam::pointMesh >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< vector, Foam::pointMesh >, AveragingMethod< Type >, baseIOdictionary, BlendedInterfacialModel< ModelType >, CompactIOField< T, BaseType >, CompactIOList< T, BaseType >, decomposedBlockData, populationBalanceModel, DimensionedField< Type, GeoMesh >, dragModel, dragModel, extendedFeatureEdgeMesh, featureEdgeMesh, fieldDictionary, GlobalIOField< Type >, GlobalIOList< Type >, IOField< Type >, IOList< T >, IOMap< T >, IOmapDistribute, IOPosition< CloudType >, IOPtrList< T >, meshObject, objectRegistry, PDRDragModel, polyBoundaryMesh, polyBoundaryMeshEntries, polyTopoChanger, porosityModel, refinementHistory, searchableSurface, SLGThermo, solutionControl, SubDimensionedField< Type, GeoMesh >, surfacePatchIOList, surfaceTensionModel, surfaceTensionModel, surfZoneIOList, topoSet, UniformDimensionedField< Type >, virtualMassModel, virtualMassModel, ZoneMesh< ZoneType, MeshType >, GlobalIOField< Foam::Vector >, IOList< kinematicParcelInjectionData >, IOList< label >, IOList< labelList >, IOList< reactingMultiphaseParcelInjectionData >, IOList< reactingParcelInjectionData >, IOPtrList< coordinateSystem >, UniformDimensionedField< scalar >, UniformDimensionedField< vector >, ZoneMesh< cellZone, polyMesh >, ZoneMesh< faceZone, polyMesh >, and ZoneMesh< pointZone, polyMesh >.

Collaboration diagram for regIOobject:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("regIOobject")
 Runtime type information. More...
 
 regIOobject (const IOobject &, const bool isTime=false)
 Construct from IOobject. Optional flag for if IOobject is the. More...
 
 regIOobject (const regIOobject &)
 Construct as copy. More...
 
 regIOobject (const regIOobject &, bool registerCopy)
 Construct as copy, transferring registry registration to copy. More...
 
 regIOobject (const word &newName, const regIOobject &, bool registerCopy)
 Construct as copy with new name, transferring registry registration. More...
 
 regIOobject (const IOobject &, const regIOobject &)
 Construct as copy with new IO parameters. More...
 
virtual ~regIOobject ()
 Destructor. More...
 
bool checkIn ()
 Add object to registry. More...
 
bool checkOut ()
 Remove object from registry. More...
 
virtual void addWatch ()
 Add file watch on object (if registered and READ_IF_MODIFIED) More...
 
bool ownedByRegistry () const
 Is this object owned by the registry? More...
 
void store ()
 Transfer ownership of this object to its registry. More...
 
void release ()
 Release ownership of this object from its registry. More...
 
label eventNo () const
 Event number at last update. More...
 
labeleventNo ()
 Event number at last update. More...
 
bool upToDate (const regIOobject &) const
 Return true if up-to-date with respect to given object. More...
 
bool upToDate (const regIOobject &, const regIOobject &) const
 Return true if up-to-date with respect to given objects. More...
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const
 Return true if up-to-date with respect to given objects. More...
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const
 Return true if up-to-date with respect to given objects. More...
 
void setUpToDate ()
 Set up to date (obviously) More...
 
virtual void rename (const word &newName)
 Rename. More...
 
virtual fileName filePath () const
 Return complete path + object name if the file exists. More...
 
bool headerOk ()
 Read and check header info. More...
 
IstreamreadStream (const word &, const bool valid=true)
 Return Istream and check object type against that given. More...
 
void close ()
 Close Istream. More...
 
virtual bool readData (Istream &)
 Virtual readData function. More...
 
virtual bool read ()
 Read object. More...
 
virtual label addWatch (const fileName &)
 Add file watch for fileName on object if not yet watched. Return. More...
 
const labelListwatchIndices () const
 Return file-monitoring handles. More...
 
labelListwatchIndices ()
 Return file-monitoring handles. More...
 
virtual bool modified () const
 Return true if the object's file (or files for objectRegistry) More...
 
virtual bool readIfModified ()
 Read object if modified (as set by call to modified) More...
 
virtual bool writeData (Ostream &) const =0
 Pure virtual writaData function. More...
 
virtual bool writeObject (IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const
 Write using given format, version and compression. More...
 
virtual bool write (const bool valid=true) const
 Write using setting from DB. More...
 
virtual bool global () const
 Is object global. More...
 
void operator= (const IOobject &)
 
- Public Member Functions inherited from IOobject
 TypeName ("IOobject")
 Runtime type information. More...
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
 Construct from name, instance, registry, io options. More...
 
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 Construct from name, instance, local, registry, io options. More...
 
 IOobject (const fileName &path, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 Construct from path, registry, io options. More...
 
 IOobject (const IOobject &io, const objectRegistry &registry)
 Construct from copy resetting registry. More...
 
 IOobject (const IOobject &io, const word &name)
 Construct from copy resetting name. More...
 
autoPtr< IOobjectclone () const
 Clone. More...
 
autoPtr< IOobjectclone (const objectRegistry &registry) const
 Clone resetting registry. More...
 
virtual ~IOobject ()
 Destructor. More...
 
const Timetime () const
 Return time. More...
 
const objectRegistrydb () const
 Return the local objectRegistry. More...
 
const wordname () const
 Return name. More...
 
const wordheaderClassName () const
 Return name of the class name read from header. More...
 
wordheaderClassName ()
 Return name of the class name read from header. More...
 
stringnote ()
 Return non-constant access to the optional note. More...
 
const stringnote () const
 Return the optional note. More...
 
bool & registerObject ()
 Register object created from this IOobject with registry if true. More...
 
bool registerObject () const
 Register object created from this IOobject with registry if true. More...
 
bool & globalObject ()
 Is object same for all processors. More...
 
bool globalObject () const
 Is object same for all processors. More...
 
readOption readOpt () const
 
readOptionreadOpt ()
 
writeOption writeOpt () const
 
writeOptionwriteOpt ()
 
word group () const
 Return group (extension part of name) More...
 
word member () const
 Return member (name without the extension) More...
 
const fileNamerootPath () const
 
const fileNamecaseName () const
 
const fileNameinstance () const
 
fileNameinstance ()
 
const fileNamelocal () const
 
fileName path () const
 Return complete path. More...
 
fileName path (const word &instance, const fileName &local="") const
 Return complete path with alternative instance and local. More...
 
fileName objectPath () const
 Return complete path + object name. More...
 
fileName localFilePath (const word &typeName) const
 Helper for filePath that searches locally. More...
 
fileName globalFilePath (const word &typeName) const
 Helper for filePath that searches up if in parallel. More...
 
bool readHeader (Istream &)
 Read header. More...
 
template<class Type >
bool typeHeaderOk (const bool checkType=true)
 Read header (uses typeFilePath to find file) and check header. More...
 
template<class Type >
void warnNoRereading () const
 Helper: warn that type does not support re-reading. More...
 
bool writeHeader (Ostream &) const
 Write header. More...
 
bool writeHeader (Ostream &, const word &objectType) const
 Write header. Allow override of type. More...
 
bool good () const
 
bool bad () const
 
InfoProxy< IOobjectinfo () const
 Return info proxy. More...
 
void operator= (const IOobject &)
 
template<class Name >
Foam::word groupName (Name name, const word &group)
 

Static Public Member Functions

template<class Type >
static Type & store (Type *)
 Transfer ownership of the given object pointer to its registry. More...
 
template<class Type >
static Type & store (autoPtr< Type > &)
 Transfer ownership of the given object pointer to its registry. More...
 
- Static Public Member Functions inherited from IOobject
static bool fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name)
 Split path into instance, local, name components. More...
 
template<class Name >
static word groupName (Name name, const word &group)
 
static word group (const word &name)
 Return group (extension part of name) More...
 
static word member (const word &name)
 Return member (name without the extension) More...
 
template<class Stream >
static Stream & writeBanner (Stream &os, bool noHint=false)
 Write the standard OpenFOAM file/dictionary banner. More...
 
template<class Stream >
static Stream & writeDivider (Stream &os)
 Write the standard file section divider. More...
 
template<class Stream >
static Stream & writeEndDivider (Stream &os)
 Write the standard end file divider. More...
 

Static Public Attributes

static float fileModificationSkew
 
- Static Public Attributes inherited from IOobject
static const NamedEnum< fileCheckTypes, 4 > fileCheckTypesNames
 
static fileCheckTypes fileModificationChecking
 Type of file modification checking. More...
 

Protected Member Functions

bool readHeaderOk (const IOstream::streamFormat PstreamFormat, const word &typeName)
 Helper: check readOpt flags and read if necessary. More...
 
- Protected Member Functions inherited from IOobject
void setBad (const string &)
 Set the object state to bad. More...
 

Static Protected Attributes

static bool masterOnlyReading = false
 To flag master-only reading of objects. More...
 

Friends

class functionEntries::codeStream
 Declare friendship with any classes that need access to. More...
 
class fileOperations::uncollatedFileOperation
 
class fileOperations::masterUncollatedFileOperation
 

Additional Inherited Members

- Public Types inherited from IOobject
enum  objectState { GOOD, BAD }
 Enumeration defining the valid states of an IOobject. More...
 
enum  readOption { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ }
 Enumeration defining the read options. More...
 
enum  writeOption { AUTO_WRITE = 0, NO_WRITE = 1 }
 Enumeration defining the write options. More...
 
enum  fileCheckTypes { timeStamp, timeStampMaster, inotify, inotifyMaster }
 Enumeration defining the file checking options. More...
 

Detailed Description

regIOobject is an abstract class derived from IOobject to handle automatic object registration with the objectRegistry.

Source files

Definition at line 65 of file regIOobject.H.

Constructor & Destructor Documentation

◆ regIOobject() [1/5]

regIOobject ( const IOobject io,
const bool  isTime = false 
)

Construct from IOobject. Optional flag for if IOobject is the.

top level regIOobject.

Definition at line 56 of file regIOobject.C.

References regIOobject::checkIn(), and IOobject::registerObject().

Referenced by regIOobject::regIOobject().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ regIOobject() [2/5]

regIOobject ( const regIOobject rio)

Construct as copy.

Definition at line 77 of file regIOobject.C.

◆ regIOobject() [3/5]

regIOobject ( const regIOobject rio,
bool  registerCopy 
)

Construct as copy, transferring registry registration to copy.

if registerCopy is true

Definition at line 89 of file regIOobject.C.

References regIOobject::checkIn(), regIOobject::checkOut(), and regIOobject::regIOobject().

Here is the call graph for this function:

◆ regIOobject() [4/5]

regIOobject ( const word newName,
const regIOobject rio,
bool  registerCopy 
)

Construct as copy with new name, transferring registry registration.

to copy as specified

Definition at line 106 of file regIOobject.C.

References regIOobject::checkIn(), and regIOobject::regIOobject().

Here is the call graph for this function:

◆ regIOobject() [5/5]

regIOobject ( const IOobject io,
const regIOobject rio 
)

Construct as copy with new IO parameters.

Definition at line 126 of file regIOobject.C.

References regIOobject::checkIn(), and IOobject::registerObject().

Here is the call graph for this function:

◆ ~regIOobject()

~regIOobject ( )
virtual

Destructor.

Definition at line 146 of file regIOobject.C.

References IOobject::caseName(), regIOobject::checkOut(), IOobject::db(), Foam::endl(), IOobject::instance(), IOobject::name(), IOobject::path(), Foam::Pout, and IOobject::rootPath().

Here is the call graph for this function:

Member Function Documentation

◆ readHeaderOk()

bool readHeaderOk ( const IOstream::streamFormat  PstreamFormat,
const word typeName 
)
protected

◆ TypeName()

TypeName ( "regIOobject"  )

Runtime type information.

◆ checkIn()

bool checkIn ( )

◆ checkOut()

bool checkOut ( )

Remove object from registry.

Definition at line 210 of file regIOobject.C.

References objectRegistry::checkOut(), List< T >::clear(), IOobject::db(), Foam::fileHandler(), forAllReverse, and fileOperation::removeWatch().

Referenced by regionFunctionObject::clearObject(), objectRegistry::dbDir(), regIOobject::operator=(), regIOobject::regIOobject(), regIOobject::rename(), and regIOobject::~regIOobject().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addWatch() [1/2]

void addWatch ( )
virtual

◆ ownedByRegistry()

bool ownedByRegistry ( ) const
inline

Is this object owned by the registry?

Definition at line 28 of file regIOobjectI.H.

Referenced by objectRegistry::checkOut(), regionFunctionObject::clearObject(), and removeRegisteredObject::execute().

Here is the caller graph for this function:

◆ store() [1/3]

void store ( )
inline

◆ store() [2/3]

Type & store ( Type *  tPtr)
inlinestatic

Transfer ownership of the given object pointer to its registry.

and return reference to object.

Definition at line 41 of file regIOobjectI.H.

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

Here is the call graph for this function:

◆ store() [3/3]

Type & store ( autoPtr< Type > &  atPtr)
inlinestatic

Transfer ownership of the given object pointer to its registry.

and return reference to object.

Definition at line 57 of file regIOobjectI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and autoPtr< T >::ptr().

Here is the call graph for this function:

◆ release()

void release ( )
inline

Release ownership of this object from its registry.

Definition at line 74 of file regIOobjectI.H.

Referenced by removeRegisteredObject::execute().

Here is the caller graph for this function:

◆ eventNo() [1/2]

Foam::label eventNo ( ) const
inline

Event number at last update.

Definition at line 80 of file regIOobjectI.H.

Referenced by fvMatrix< Type >::fvMatrix(), objectRegistry::getEvent(), polyMesh::movePoints(), polyMesh::setUpToDatePoints(), and regIOobject::upToDate().

Here is the caller graph for this function:

◆ eventNo() [2/2]

Foam::label & eventNo ( )
inline

Event number at last update.

Definition at line 85 of file regIOobjectI.H.

◆ upToDate() [1/4]

bool upToDate ( const regIOobject a) const

Return true if up-to-date with respect to given object.

otherwise false

Definition at line 321 of file regIOobject.C.

References regIOobject::eventNo().

Referenced by regIOobject::upToDate(), and polyMesh::upToDatePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ upToDate() [2/4]

bool upToDate ( const regIOobject a,
const regIOobject b 
) const

Return true if up-to-date with respect to given objects.

otherwise false

Definition at line 335 of file regIOobject.C.

References regIOobject::eventNo(), and regIOobject::upToDate().

Here is the call graph for this function:

◆ upToDate() [3/4]

bool upToDate ( const regIOobject a,
const regIOobject b,
const regIOobject c 
) const

Return true if up-to-date with respect to given objects.

otherwise false

Definition at line 356 of file regIOobject.C.

References regIOobject::eventNo(), and regIOobject::upToDate().

Here is the call graph for this function:

◆ upToDate() [4/4]

bool upToDate ( const regIOobject a,
const regIOobject b,
const regIOobject c,
const regIOobject d 
) const

Return true if up-to-date with respect to given objects.

otherwise false

Definition at line 379 of file regIOobject.C.

References regIOobject::eventNo().

Here is the call graph for this function:

◆ setUpToDate()

void setUpToDate ( )

Set up to date (obviously)

Definition at line 403 of file regIOobject.C.

References IOobject::db(), and objectRegistry::getEvent().

Here is the call graph for this function:

◆ rename()

void rename ( const word newName)
virtual

◆ filePath()

Foam::fileName filePath ( ) const
virtual

Return complete path + object name if the file exists.

in the case directory otherwise null. Does not search up if parallel. Can be overridden to provide this functionality (e.g. IOdictionary)

Reimplemented in distributedTriSurfaceMesh, triSurfaceMesh, extendedFeatureEdgeMesh, UniformDimensionedField< Type >, UniformDimensionedField< scalar >, UniformDimensionedField< vector >, featureEdgeMesh, IOMap< T >, GlobalIOField< Type >, GlobalIOList< Type >, GlobalIOField< Foam::Vector >, baseIOdictionary, IOdictionary, localIOdictionary, and unwatchedIOdictionary.

Definition at line 424 of file regIOobject.C.

References IOobject::localFilePath(), and Foam::type().

Referenced by regIOobject::addWatch(), regIOobject::headerOk(), regIOobject::readHeaderOk(), and Time::writeObject().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ headerOk()

bool headerOk ( )

◆ readStream()

Foam::Istream & readStream ( const word expectName,
const bool  valid = true 
)

◆ close()

void close ( )

◆ readData()

bool readData ( Istream )
virtual

Virtual readData function.

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

Reimplemented in refinementHistory, extendedFeatureEdgeMesh, GlobalIOField< Type >, GlobalIOList< Type >, GlobalIOField< Foam::Vector >, baseIOdictionary, featureEdgeMesh, and IOmapDistribute.

Definition at line 192 of file regIOobjectRead.C.

Referenced by uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), and IOPosition< CloudType >::type().

Here is the caller graph for this function:

◆ read()

bool read ( )
virtual

Read object.

Reimplemented in phaseSystem, basicThermo, refinementHistory, phaseModel, Time, twoPhaseMixtureThermo, multiphaseSystem, multiphaseMixture, kinematicSingleLayer, incompressibleThreePhaseMixture, radiationModel, phaseModel, EDC< ReactionThermo >, thermoSingleLayer, crankConRod, incompressibleTwoPhaseInteractingMixture, kineticTheoryModel, kineticTheoryModel, twoPhaseSystem, motionSolver, fvDOM, rigidBodyMeshMotion, RASModel< EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > > >, RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >, rigidBodyMeshMotionSolver, engineTime, reactingOneDim, incompressibleTwoPhaseMixture, solidThermo, viewFactor, FSD< ReactionThermo, ThermoType >, combustionModel, phaseChangeTwoPhaseMixture, fvSchemes, SRFModel, solution, sixDoFRigidBodyMotionSolver, phasePressureModel, phasePressureModel, regionModel, decomposedBlockData, SchnerrSauer, zoneCombustion< ReactionThermo >, IOOutputFilter< OutputFilter >, CombustionModel< ReactionThermo >, turbulenceModel, Kunz, P1, laminar< ReactionThermo >, pimpleMultiRegionControl, PaSR< ReactionThermo >, thermalBaffle, Merkle, singleStepCombustion< ReactionThermo, ThermoType >, singlePhaseTransportModel, diffusion< ReactionThermo, ThermoType >, pimpleControl, regionModel1D, EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > >, EddyDiffusivity< phaseCompressibleTurbulenceModel >, IOMRFZoneList, solutionControl, infinitelyFastChemistry< ReactionThermo, ThermoType >, eddyViscosity< RASModel< EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > > > >, eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >, pimpleNoLoopControl, noCombustion< ReactionThermo >, options, thermalBaffleModel, fluidSolutionControl, noRadiation, opaqueSolid, simpleControl, rpm, singleLayerRegion, pisoControl, tolerances, nonOrthogonalSolutionControl, pyrolysisModel, IOporosityModelList, linearViscousStress< RASModel< EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > > > >, linearViscousStress< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >, immiscibleIncompressibleTwoPhaseMixture, solidNoLoopControl, surfaceFilmRegionModel, noPyrolysis, and noThermo.

Definition at line 198 of file regIOobjectRead.C.

References regIOobject::addWatch(), IOstream::BINARY, List< T >::clear(), Foam::fileHandler(), IOobject::fileModificationChecking, forAll, forAllReverse, fileOperation::getFile(), regIOobject::global(), IOobject::inotifyMaster, fileOperation::read(), fileOperation::removeWatch(), List< T >::setSize(), List< T >::size(), IOobject::timeStampMaster, and Foam::type().

Referenced by phaseModel::alphaPhi(), PDRDragModel::on(), porosityModel::iNew::operator()(), IOporosityModelList::read(), tolerances::read(), IOMRFZoneList::read(), singlePhaseTransportModel::read(), turbulenceModel::read(), regionModel::read(), SRFModel::read(), solution::read(), fvSchemes::read(), combustionModel::read(), solidThermo::read(), incompressibleTwoPhaseMixture::read(), motionSolver::read(), radiationModel::read(), basicThermo::read(), regIOobject::readIfModified(), and phase::rho().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addWatch() [2/2]

Foam::label addWatch ( const fileName f)
virtual

Add file watch for fileName on object if not yet watched. Return.

index of watch

Reimplemented in unwatchedIOdictionary.

Definition at line 228 of file regIOobject.C.

References regIOobject::addWatch(), List< T >::append(), Foam::fileHandler(), fileOperation::findWatch(), IOobject::MUST_READ_IF_MODIFIED, IOobject::readOpt(), List< T >::size(), and IOobject::time().

Here is the call graph for this function:

◆ watchIndices() [1/2]

const Foam::labelList & watchIndices ( ) const
inline

Return file-monitoring handles.

Definition at line 91 of file regIOobjectI.H.

Referenced by fileOperation::addWatches(), masterUncollatedFileOperation::addWatches(), and Time::readDict().

Here is the caller graph for this function:

◆ watchIndices() [2/2]

Foam::labelList & watchIndices ( )
inline

Return file-monitoring handles.

Definition at line 97 of file regIOobjectI.H.

◆ modified()

bool modified ( ) const
virtual

Return true if the object's file (or files for objectRegistry)

have been modified. (modified state is cached by Time)

Reimplemented in objectRegistry.

Definition at line 244 of file regIOobjectRead.C.

References Foam::fileHandler(), forAllReverse, and fileMonitor::UNMODIFIED.

Referenced by regIOobject::readIfModified().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readIfModified()

bool readIfModified ( )
virtual

Read object if modified (as set by call to modified)

Reimplemented in objectRegistry.

Definition at line 258 of file regIOobjectRead.C.

References Foam::endl(), Foam::fileHandler(), forAllReverse, fileOperation::getFile(), Foam::Info, UList< T >::last(), regIOobject::modified(), IOobject::name(), Foam::nl, regIOobject::read(), and fileMonitor::UNMODIFIED.

Referenced by Time::readModifiedObjects().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeData()

virtual bool writeData ( Ostream ) const
pure virtual

Pure virtual writaData function.

Must be defined in derived types

Implemented in GeometricField< Type, PatchField, GeoMesh >, GeometricField< Type, Foam::pointPatchField, Foam::pointMesh >, GeometricField< Type, Foam::fvPatchField, Foam::volMesh >, GeometricField< scalar, Foam::fvPatchField, Foam::volMesh >, GeometricField< symmTensor, fvPatchField, volMesh >, GeometricField< tensor, fvPatchField, volMesh >, GeometricField< vector, fvsPatchField, surfaceMesh >, GeometricField< scalar, fvPatchField, volMesh >, GeometricField< scalar, fvsPatchField, surfaceMesh >, GeometricField< Foam::Vector, Foam::pointPatchField, Foam::pointMesh >, GeometricField< scalar, pointPatchField, pointMesh >, GeometricField< vector, fvPatchField, volMesh >, GeometricField< scalar, Foam::pointPatchField, Foam::pointMesh >, GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh >, GeometricField< Foam::Vector, Foam::fvPatchField, Foam::volMesh >, GeometricField< vector, pointPatchField, pointMesh >, refinementHistory, populationBalanceModel, triSurfaceMesh, DimensionedField< Type, GeoMesh >, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, triSurfacePointGeoMesh >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< vector, Foam::pointMesh >, DimensionedField< Type, Foam::pointMesh >, searchableSurfaceWithGaps, topoSet, searchableSurfaceCollection, porosityModel, searchableBox, searchableCylinder, solidification, polyBoundaryMesh, searchableDisk, searchablePlate, powerLawLopesdaCosta, objectRegistry, searchableExtrudedCircle, searchableSphere, searchablePlane, BlendedInterfacialModel< ModelType >, BlendedInterfacialModel< Foam::wallLubricationModel >, BlendedInterfacialModel< Foam::dragModel >, BlendedInterfacialModel< Foam::heatTransferModel >, BlendedInterfacialModel< Foam::virtualMassModel >, BlendedInterfacialModel< Foam::liftModel >, BlendedInterfacialModel< Foam::turbulentDispersionModel >, DarcyForchheimer, ZoneMesh< ZoneType, MeshType >, ZoneMesh< faceZone, polyMesh >, ZoneMesh< pointZone, polyMesh >, ZoneMesh< cellZone, polyMesh >, powerLaw, PDRDragModel, AveragingMethod< Type >, AveragingMethod< scalar >, AveragingMethod< Foam::Vector >, fixedCoeff, MeshObject< fvMesh, MoveableMeshObject, FitDataType >, MeshObject< polyMesh, GeometricMeshObject, meshSearchMeshObject >, MeshObject< polyMesh, UpdateableMeshObject, decompositionModel >, MeshObject< fvMesh, MoveableMeshObject, CentredFitData< Polynomial > >, MeshObject< fvMesh, TopologicalMeshObject, centredCPCCellToFaceStencilObject >, MeshObject< polyMesh, UpdateableMeshObject, twoDPointCorrector >, MeshObject< fvMesh, UpdateableMeshObject, wallDist >, MeshObject< pointMesh, UpdateableMeshObject, pointConstraints >, MeshObject< fvMesh, TopologicalMeshObject, centredCPCCellToCellStencilObject >, MeshObject< fvMesh, TopologicalMeshObject, centredCECCellToCellStencilObject >, MeshObject< polyMesh, GeometricMeshObject, meshSearchFACE_CENTRE_TRISMeshObject >, MeshObject< fvMesh, TopologicalMeshObject, centredCFCFaceToCellStencilObject >, MeshObject< fvMesh, TopologicalMeshObject, upwindFECCellToFaceStencilObject >, MeshObject< fvMesh, MoveableMeshObject, LeastSquaresVectors< Stencil > >, MeshObject< fvMesh, TopologicalMeshObject, centredCFCCellToCellStencilObject >, MeshObject< fvMesh, MoveableMeshObject, leastSquaresVectors >, MeshObject< fvMesh, TopologicalMeshObject, upwindCECCellToFaceStencilObject >, MeshObject< fvMesh, UpdateableMeshObject, volPointInterpolation >, MeshObject< fvMesh, TopologicalMeshObject, upwindCFCCellToFaceStencilObject >, MeshObject< fvMesh, TopologicalMeshObject, upwindCPCCellToFaceStencilObject >, MeshObject< lduMesh, GeometricMeshObject, GAMGAgglomeration >, MeshObject< fvMesh, TopologicalMeshObject, pureUpwindCFCCellToFaceStencilObject >, MeshObject< fvMesh, TopologicalMeshObject, centredCECCellToFaceStencilObject >, MeshObject< fvMesh, MoveableMeshObject, UpwindFitData< Polynomial > >, MeshObject< polyMesh, TopologicalMeshObject, regionSplit >, MeshObject< fvMesh, MoveableMeshObject, skewCorrectionVectors >, MeshObject< polyMesh, UpdateableMeshObject, pointMesh >, MeshObject< fvMesh, TopologicalMeshObject, centredCFCCellToFaceStencilObject >, MeshObject< fvMesh, TopologicalMeshObject, centredFECCellToFaceStencilObject >, MeshObject< fvMesh, MoveableMeshObject, CentredFitSnGradData< Polynomial > >, SLGThermo, polyTopoChanger, dragModel, dragModel, surfaceTensionModel, virtualMassModel, virtualMassModel, extendedFeatureEdgeMesh, decomposedBlockData, temperatureDependent, coordinateSystems, surfaceTensionModel, CompactIOList< T, BaseType >, CompactIOList< face, label >, liquidProperties, CompactIOField< T, BaseType >, constant, surfacePatchIOList, GlobalIOField< Type >, GlobalIOList< Type >, GlobalIOField< Foam::Vector >, baseIOdictionary, surfZoneIOList, UniformDimensionedField< Type >, UniformDimensionedField< scalar >, UniformDimensionedField< vector >, IOPtrList< T >, IOPtrList< coordinateSystem >, IOPosition< CloudType >, featureEdgeMesh, IOField< Type >, IOMap< T >, IOmapDistribute, IOList< T >, IOList< label >, IOList< reactingParcelInjectionData >, IOList< reactingMultiphaseParcelInjectionData >, IOList< kinematicParcelInjectionData >, IOList< labelList >, fieldDictionary, polyBoundaryMeshEntries, and solutionControl.

Referenced by collatedFileOperation::appendObject(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), searchableSurfaceWithGaps::writeData(), collatedFileOperation::writeObject(), fileOperation::writeObject(), and masterUncollatedFileOperation::writeObject().

Here is the caller graph for this function:

◆ writeObject()

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

◆ write()

bool write ( const bool  valid = true) const
virtual

Write using setting from DB.

Reimplemented in fvMesh, AveragingMethod< Type >, AveragingMethod< scalar >, AveragingMethod< Foam::Vector >, and IOPosition< CloudType >.

Definition at line 168 of file regIOobjectWrite.C.

References IOstream::currentVersion, IOobject::time(), and regIOobject::writeObject().

Referenced by snappyLayerDriver::addLayers(), rotorDiskSource::addSup(), hexRef8::consistentSlowRefinement2(), thixotropicViscosity::correct(), snappySnapDriver::doSnap(), dynamicRefineFvMesh::dynamicRefineFvMesh(), Foam::MapLagrangianFields(), meshRefinement::mergePatchFacesUndo(), polyMesh::movePoints(), polyMesh::polyMesh(), snappySnapDriver::scaleMesh(), hexRef8::setUnrefinement(), snappyRefineDriver::snappyRefineDriver(), surfMesh::surfZones(), IOPosition< CloudType >::write(), PatchCollisionDensity< CloudType >::write(), dsmcFields::write(), writeCellVolumes::write(), XiReactionRate::write(), AveragingMethod< Foam::Vector >::write(), regionSizeDistribution::write(), fvMesh::write(), hexRef8::write(), meshRefinement::write(), KinematicParcel< ParcelType >::writeFields(), streamLineParticle::writeFields(), MPPICParcel< ParcelType >::writeFields(), SprayParcel< ParcelType >::writeFields(), Time::writeNow(), regionFunctionObject::writeObject(), writeObjectsBase::writeObject(), cellZoneSet::writeObject(), pointZoneSet::writeObject(), faceZoneSet::writeObject(), dynamicRefineFvMesh::writeObject(), fvMesh::writeObject(), and volFieldValue::writeValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ global()

virtual bool global ( ) const
inlinevirtual

◆ operator=()

void operator= ( const IOobject io)

Definition at line 451 of file regIOobject.C.

References regIOobject::checkIn(), regIOobject::checkOut(), IOobject::operator=(), and IOobject::registerObject().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ functionEntries::codeStream

friend class functionEntries::codeStream
friend

Declare friendship with any classes that need access to.

masterOnlyReading

Definition at line 114 of file regIOobject.H.

◆ fileOperations::uncollatedFileOperation

Definition at line 115 of file regIOobject.H.

◆ fileOperations::masterUncollatedFileOperation

Definition at line 116 of file regIOobject.H.

Member Data Documentation

◆ masterOnlyReading

bool masterOnlyReading = false
staticprotected

To flag master-only reading of objects.

Definition at line 78 of file regIOobject.H.

Referenced by uncollatedFileOperation::read().

◆ fileModificationSkew

float fileModificationSkew
static

Definition at line 124 of file regIOobject.H.

Referenced by argList::parse(), and fileMonitorWatcher::removeWatch().


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