Wrapper around Function1 that constructs a function for an as yet unknown primitive type. It stores the location of the user input and actually constructs the function on demand at the point at which a value is requested for a specific type. More...
Public Member Functions | |
unknownTypeFunction1 (const word &name, const dictionary &dict) | |
Construct from an name and a dictionary. More... | |
unknownTypeFunction1 (const unknownTypeFunction1 &)=delete | |
Disallow default bitwise copy construction. More... | |
~unknownTypeFunction1 () | |
Destructor. More... | |
template<class Type > | |
Type | value (const scalar x) const |
Return value as a function of scalar x. More... | |
template<class Type > | |
tmp< Field< Type > > | value (const scalarField &x) const |
Return value as a function of scalarField x. More... | |
template<class Type > | |
Type | integral (const scalar x1, const scalar x2) const |
Integrate between two scalars. More... | |
template<class Type > | |
tmp< Field< Type > > | integral (const scalarField &x1, const scalarField &x2) const |
Integrate between two scalar fields. More... | |
void | operator= (const unknownTypeFunction1 &)=delete |
Disallow default bitwise assignment. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | value (const scalarField &x) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | integral (const scalarField &x1, const scalarField &x2) const |
Wrapper around Function1 that constructs a function for an as yet unknown primitive type. It stores the location of the user input and actually constructs the function on demand at the point at which a value is requested for a specific type.
Definition at line 54 of file unknownTypeFunction1.H.
unknownTypeFunction1 | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from an name and a dictionary.
Definition at line 31 of file unknownTypeFunction1.C.
|
delete |
Disallow default bitwise copy construction.
~unknownTypeFunction1 | ( | ) |
Destructor.
Definition at line 44 of file unknownTypeFunction1.C.
Type value | ( | const scalar | x | ) | const |
Return value as a function of scalar x.
Definition at line 51 of file unknownTypeFunction1Templates.C.
Referenced by unknownTypeFunction1::value().
tmp<Field<Type> > value | ( | const scalarField & | x | ) | const |
Return value as a function of scalarField x.
Type integral | ( | const scalar | x1, |
const scalar | x2 | ||
) | const |
Integrate between two scalars.
Definition at line 75 of file unknownTypeFunction1Templates.C.
Referenced by unknownTypeFunction1::integral(), and unknownTypeFunction1::value().
tmp<Field<Type> > integral | ( | const scalarField & | x1, |
const scalarField & | x2 | ||
) | const |
Integrate between two scalar fields.
|
delete |
Disallow default bitwise assignment.
Foam::tmp<Foam::Field<Type> > value | ( | const scalarField & | x | ) | const |
Definition at line 63 of file unknownTypeFunction1Templates.C.
References unknownTypeFunction1::integral(), and unknownTypeFunction1::value().
Foam::tmp<Foam::Field<Type> > integral | ( | const scalarField & | x1, |
const scalarField & | x2 | ||
) | const |
Definition at line 88 of file unknownTypeFunction1Templates.C.
References unknownTypeFunction1::integral().