Go to the documentation of this file.
35 #ifndef objectRegistry_H
36 #define objectRegistry_H
97 const label nIoObjects = 128
105 const label nIoObjects = 128
164 const bool forceCreate =
false
virtual bool readIfModified()
Read object if modified.
wordList sortedNames() const
Return the sorted list of names of the IOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual ~objectRegistry()
Destructor.
virtual bool writeData(Ostream &) const
writeData function required by regIOobject but not used
label getEvent() const
Return new event number.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
A class for handling file names.
compressionType
Enumeration for the format of data in the stream.
TypeName("objectRegistry")
Declare type name for this IOobject.
const Time & time() const
Return time.
bool checkIn()
Add object to registry.
const objectRegistry & parent_
Parent objectRegistry.
A wordRe is a word, but can also have a regular expression for matching words.
void operator=(const objectRegistry &)
Disallow default bitwise copy construct and assignment.
bool parentNotTime() const
Is the objectRegistry parent_ different from time_.
const objectRegistry & db() const
Return the local objectRegistry.
Registry of regIOobjects.
HashTable< const Type * > lookupClass(const bool strict=false) const
Lookup and return all objects of the given Type.
const objectRegistry & subRegistry(const word &name, const bool forceCreate=false) const
Lookup and return a const sub-objectRegistry. Optionally create.
label event_
Current event.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual const fileName & dbDir() const
Local directory path of this objectRegistry relative to the time.
objectRegistry(const objectRegistry &)
Disallow Copy constructor.
virtual void rename(const word &newName)
Rename.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const Time & time_
Master time objectRegistry.
const word & name() const
Return name.
fileName dbDir_
Local directory path of this objectRegistry relative to time.
Type & lookupObjectRef(const word &name) const
An STL-conforming hash table.
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.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
bool foundObject(const word &name) const
Is the named Type found?
bool checkOut()
Remove object from registry.
const objectRegistry & parent() const
Return the parent objectRegistry.
wordList names() const
Return the list of names of the IOobjects.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write the objects.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
streamFormat
Enumeration for the format of data in the stream.