30 template <
class PrimitiveType>
31 Foam::objectFunction1::objectFunction1
33 const word& entryName,
34 const dictionary& dict,
35 const type<PrimitiveType>&
38 autoPtr<Function1<PrimitiveType>>
40 Function1<PrimitiveType>::
New(entryName, dict).ptr()
47 template <
template <
class>
class ObjectType>
50 const word& entryName,
52 const word& objectName,
62 : db.
foundObject<ObjectType<symmTensor>>(objectName)
64 : db.
foundObject<ObjectType<sphericalTensor>>(objectName)
89 template <
class PrimitiveType>
99 template <
class PrimitiveType>
109 template <
class PrimitiveType>
120 template <
class PrimitiveType>
Wrapper around Function1 that constructs a function of type associated with an object found in the da...
PrimitiveType value(const scalar x) const
Return value as a function of (scalar) independent variable.
A list of keyword definitions, which are a keyword followed by any number of values (e...
bool foundObject(const word &name) const
Is the named Type found?
Function1< sphericalTensor > * ptr()
Return object pointer for reuse.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
PrimitiveType integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
~objectFunction1()
Destructor.
static autoPtr< objectFunction1 > New(const word &entryName, const dictionary &dict, const word &objectName, const objectRegistry &db)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
Registry of regIOobjects.