unknownTypeFunction1 Class Reference

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
 

Detailed Description

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.

Source files

Definition at line 54 of file unknownTypeFunction1.H.

Constructor & Destructor Documentation

◆ unknownTypeFunction1() [1/2]

unknownTypeFunction1 ( const word name,
const dictionary dict 
)

Construct from an name and a dictionary.

Definition at line 31 of file unknownTypeFunction1.C.

◆ unknownTypeFunction1() [2/2]

Disallow default bitwise copy construction.

◆ ~unknownTypeFunction1()

Destructor.

Definition at line 44 of file unknownTypeFunction1.C.

Member Function Documentation

◆ value() [1/3]

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().

Here is the caller graph for this function:

◆ value() [2/3]

tmp<Field<Type> > value ( const scalarField x) const

Return value as a function of scalarField x.

◆ integral() [1/3]

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().

Here is the caller graph for this function:

◆ integral() [2/3]

tmp<Field<Type> > integral ( const scalarField x1,
const scalarField x2 
) const

Integrate between two scalar fields.

◆ operator=()

void operator= ( const unknownTypeFunction1 )
delete

Disallow default bitwise assignment.

◆ value() [3/3]

Foam::tmp<Foam::Field<Type> > value ( const scalarField x) const

Definition at line 63 of file unknownTypeFunction1Templates.C.

References unknownTypeFunction1::integral(), and unknownTypeFunction1::value().

Here is the call graph for this function:

◆ integral() [3/3]

Foam::tmp<Foam::Field<Type> > integral ( const scalarField x1,
const scalarField x2 
) const

Definition at line 88 of file unknownTypeFunction1Templates.C.

References unknownTypeFunction1::integral().

Here is the call graph for this function:

The documentation for this class was generated from the following files: