39 if (obrPtr_ && useTime)
41 return &(obrPtr_->time());
52 const word& entryName,
64 const word& entryName,
97 <<
"Object registry not set" 109 <<
"Object registry not set" 113 return obrPtr_->time();
119 return (obrPtr_ && obrPtr_->isTimeDb());
Reference counter for various OpenFOAM components.
const objectRegistry & obr() const
Return the object registry.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void userTimeToTime(const Time &t)
Convert time.
bool isTime() const noexcept
Return true if this function was created with the time database.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const objectRegistry * whichDb() const noexcept
Return the associated registry or nullptr.
A class for handling words, derived from Foam::string.
errorManip< error > abort(error &err)
virtual ~function1Base()
Destructor.
function1Base(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name and optional registry.
void resetDb(const objectRegistry *obrPtr=nullptr) noexcept
Reset the associated objectRegistry.
Base class for template-invariant parts of Function1.
const Time & time() const
Return the time database.
Registry of regIOobjects.