Base class for template-invariant parts of Function1. More...


Public Member Functions | |
| function1Base (const word &entryName, const objectRegistry *obrPtr=nullptr) | |
| Construct from entry name and optional registry. More... | |
| function1Base (const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr) | |
| Construct from entry name, dictionary (unused) and optional registry. More... | |
| function1Base (const function1Base &rhs) | |
| Copy construct. More... | |
| virtual | ~function1Base () |
| Destructor. More... | |
| const word & | name () const noexcept |
| The name of the entry. More... | |
| const objectRegistry * | whichDb () const noexcept |
| Return the associated registry or nullptr. More... | |
| void | resetDb (const objectRegistry *obrPtr=nullptr) noexcept |
| Reset the associated objectRegistry. More... | |
| void | resetDb (const objectRegistry &db) noexcept |
| Reset the associated objectRegistry. More... | |
| const objectRegistry & | obr () const |
| Return the object registry. More... | |
| bool | isTime () const noexcept |
| Return true if this function was created with the time database. More... | |
| const Time & | time () const |
| Return the time database. More... | |
| template<class MeshType > | |
| const MeshType & | mesh (const word ®ionName=word::null) const |
| Return the mesh database if this Function1 was created using a mesh. More... | |
| virtual void | userTimeToTime (const Time &t) |
| Convert time. More... | |
Public Member Functions inherited from refCount | |
| constexpr | refCount () noexcept |
| Default construct, initializing count to 0. More... | |
| int | use_count () const noexcept |
| Return the current reference count. More... | |
| bool | unique () const noexcept |
| Return true if the reference count is zero. More... | |
| void | operator++ () noexcept |
| Increment the reference count. More... | |
| void | operator++ (int) noexcept |
| Increment the reference count. More... | |
| void | operator-- () noexcept |
| Decrement the reference count. More... | |
| void | operator-- (int) noexcept |
| Decrement the reference count. More... | |
Protected Member Functions | |
| void | operator= (const function1Base &)=delete |
| No copy assignment. More... | |
Protected Attributes | |
| const word | name_ |
| Name of entry. More... | |
| const objectRegistry * | obrPtr_ |
| Pointer to an object registry. More... | |
Base class for template-invariant parts of Function1.
Definition at line 50 of file function1Base.H.
|
explicit |
Construct from entry name and optional registry.
Definition at line 44 of file function1Base.C.
| function1Base | ( | const word & | entryName, |
| const dictionary & | dict, | ||
| const objectRegistry * | obrPtr = nullptr |
||
| ) |
Construct from entry name, dictionary (unused) and optional registry.
Definition at line 56 of file function1Base.C.
|
explicit |
Copy construct.
Definition at line 68 of file function1Base.C.
|
virtual |
Destructor.
Definition at line 79 of file function1Base.C.
|
protecteddelete |
No copy assignment.
|
inlinenoexcept |
The name of the entry.
Definition at line 127 of file function1Base.H.
References function1Base::name_.
|
inlinenoexcept |
Return the associated registry or nullptr.
Definition at line 135 of file function1Base.H.
References function1Base::obrPtr_.
Referenced by function1Base::mesh().

|
noexcept |
Reset the associated objectRegistry.
Definition at line 116 of file function1Base.C.
|
noexcept |
Reset the associated objectRegistry.
Definition at line 122 of file function1Base.C.
| const Foam::objectRegistry & obr | ( | ) | const |
Return the object registry.
FatalError if object registry is not set
Definition at line 85 of file function1Base.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

|
noexcept |
Return true if this function was created with the time database.
Definition at line 110 of file function1Base.C.
| const Foam::Time & time | ( | ) | const |
Return the time database.
FatalError if object registry is not set
Definition at line 97 of file function1Base.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

|
inline |
Return the mesh database if this Function1 was created using a mesh.
Note: relies on refCast failure if the type is not correct
Definition at line 175 of file function1Base.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, objectRegistry::lookupObject(), regionName, and function1Base::whichDb().

|
virtual |
Convert time.
Reimplemented in Sine< Type >, ramp, Polynomial< Type >, and TableBase< Type >.
Definition at line 128 of file function1Base.C.
|
protected |
|
protected |
Pointer to an object registry.
Definition at line 74 of file function1Base.H.
Referenced by function1Base::whichDb().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.