30 template<
class PrimitiveType>
31 Foam::objectFunction1::objectFunction1
34 const dictionary& dict,
35 const type<PrimitiveType>&
38 autoPtr<Function1<PrimitiveType>>
40 Function1<PrimitiveType>::
New(name, dict).ptr()
47 template<
template<
class>
class ObjectType>
52 const word& objectName,
63 : db.
foundObject<ObjectType<symmTensor>>(objectName)
65 : db.
foundObject<ObjectType<sphericalTensor>>(objectName)
72 if (error && !ptr.
valid())
84 template<
class PrimitiveType>
94 template<
class PrimitiveType>
104 template<
class PrimitiveType>
115 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 x.
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.
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)
static autoPtr< objectFunction1 > New(const word &name, const dictionary &dict, const word &objectName, const objectRegistry &db, const bool error=true)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
PrimitiveType integral(const scalar x1, const scalar x2) const
Integrate between two scalars.
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.