Go to the documentation of this file.
37 #ifndef function1Base_H
38 #define function1Base_H
49 template<
class Type>
class Function1;
89 const word& entryName,
96 const word& entryName,
136 bool isTime() const noexcept;
144 template<class MeshType>
152 <<
"Object registry not set"
158 return refCast<const MeshType>(*ptr);
const objectRegistry * whichDb() const noexcept
Return the associated registry or nullptr.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
bool isTime() const noexcept
Return true if this function was created with the time database.
void resetDb(const objectRegistry *obrPtr=nullptr) noexcept
Reset the associated objectRegistry.
Reference counter for various OpenFOAM components.
const objectRegistry * obrPtr_
Pointer to an object registry.
const word name_
Name of entry.
const Time & time() const
Return the time database.
Registry of regIOobjects.
const objectRegistry & obr() const
Return the object registry.
Base class for template-invariant parts of Function1.
const Type & lookupObject(const word &name, const bool recursive=false) const
function1Base(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name and optional registry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
errorManip< error > abort(error &err)
virtual ~function1Base()
Destructor.
const word & name() const noexcept
The name of the entry.
void operator=(const function1Base &)=delete
No copy assignment.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const MeshType & mesh(const word ®ionName=word::null) const
Return the mesh database if this Function1 was created using a mesh.
virtual void userTimeToTime(const Time &t)
Convert time.