Wrapper around Function1 that constructs a function of type associated with an object found in the database. More...


Public Member Functions | |
| ~objectFunction1 () | |
| Destructor. More... | |
| template<class PrimitiveType > | |
| PrimitiveType | value (const scalar x) const |
| Return value as a function of scalar x. More... | |
| template<class PrimitiveType > | |
| tmp< Field< PrimitiveType > > | value (const scalarField &x) const |
| Return value as a function of scalarField x. More... | |
| template<class PrimitiveType > | |
| PrimitiveType | integral (const scalar x1, const scalar x2) const |
| Integrate between two scalars. More... | |
| template<class PrimitiveType > | |
| tmp< Field< PrimitiveType > > | integral (const scalarField &x1, const scalarField &x2) const |
| Integrate between two scalar fields. More... | |
| void | operator= (const objectFunction1 &)=delete |
| Disallow default bitwise assignment. More... | |
| template<template< class > class ObjectType> | |
| Foam::autoPtr< Foam::objectFunction1 > | New (const word &name, const dictionary &dict, const word &objectName, const objectRegistry &db, const bool error) |
| template<class PrimitiveType > | |
| Foam::tmp< Foam::Field< PrimitiveType > > | value (const scalarField &x) const |
| template<class PrimitiveType > | |
| Foam::tmp< Foam::Field< PrimitiveType > > | integral (const scalarField &x1, const scalarField &x2) const |
Static Public Member Functions | |
| template<template< class > class ObjectType> | |
| static autoPtr< objectFunction1 > | New (const word &name, const dictionary &dict, const word &objectName, const objectRegistry &db, const bool error=true) |
Wrapper around Function1 that constructs a function of type associated with an object found in the database.
Definition at line 50 of file objectFunction1.H.
|
inline |
Destructor.
Definition at line 94 of file objectFunction1.H.
References objectFunction1::integral(), objectFunction1::operator=(), objectFunction1::value(), and x.

|
static |
| PrimitiveType value | ( | const scalar | x | ) | const |
Return value as a function of scalar x.
Definition at line 86 of file objectFunction1Templates.C.
Referenced by objectFunction1::New(), objectFunction1::value(), and objectFunction1::~objectFunction1().

| tmp<Field<PrimitiveType> > value | ( | const scalarField & | x | ) | const |
Return value as a function of scalarField x.
| PrimitiveType integral | ( | const scalar | x1, |
| const scalar | x2 | ||
| ) | const |
Integrate between two scalars.
Definition at line 106 of file objectFunction1Templates.C.
Referenced by objectFunction1::integral(), objectFunction1::value(), and objectFunction1::~objectFunction1().

| tmp<Field<PrimitiveType> > integral | ( | const scalarField & | x1, |
| const scalarField & | x2 | ||
| ) | const |
Integrate between two scalar fields.
|
delete |
Disallow default bitwise assignment.
Referenced by objectFunction1::~objectFunction1().

| Foam::autoPtr<Foam::objectFunction1> New | ( | const word & | name, |
| const dictionary & | dict, | ||
| const word & | objectName, | ||
| const objectRegistry & | db, | ||
| const bool | error | ||
| ) |
Definition at line 49 of file objectFunction1Templates.C.
References objectRegistry::foundObject(), objectRegistry::lookupObject(), autoPtr< Function1< sphericalTensor > >::ptr(), autoPtr< T >::valid(), and objectFunction1::value().

| Foam::tmp<Foam::Field<PrimitiveType> > value | ( | const scalarField & | x | ) | const |
Definition at line 96 of file objectFunction1Templates.C.
References objectFunction1::integral(), and objectFunction1::value().

| Foam::tmp<Foam::Field<PrimitiveType> > integral | ( | const scalarField & | x1, |
| const scalarField & | x2 | ||
| ) | const |
Definition at line 117 of file objectFunction1Templates.C.
References objectFunction1::integral().
