Run-time selectable function of two variables. More...
Public Types | |
typedef Type | returnType |
Public Member Functions | |
TypeName ("Function2") declareRunTimeSelectionTable(autoPtr | |
Runtime type information. More... | |
Function2 (const word &name) | |
Construct from name. More... | |
Function2 (const Function2< Type > &f1) | |
Copy constructor. More... | |
virtual tmp< Function2< Type > > | clone () const =0 |
Construct and return a clone. More... | |
virtual | ~Function2 () |
Destructor. More... | |
const word & | name () const |
Return the name of the entry. More... | |
virtual Type | value (const scalar x, const scalar y) const =0 |
Return value as a function of two scalars. More... | |
virtual tmp< Field< Type > > | value (const scalarField &x, const scalarField &y) const =0 |
Return value as a function of two scalar fields. More... | |
virtual void | write (Ostream &os) const =0 |
Write in dictionary format. More... | |
void | operator= (const Function2< Type > &) |
Assignment. More... | |
Public Member Functions inherited from refCount | |
int | count () const |
Return the current reference count. More... | |
bool | unique () const |
Return true if the reference count is zero. More... | |
void | operator++ () |
Increment the reference count. More... | |
void | operator++ (int) |
Increment the reference count. More... | |
void | operator-- () |
Decrement the reference count. More... | |
void | operator-- (int) |
Decrement the reference count. More... | |
Static Public Member Functions | |
static autoPtr< Function2< Type > > | New (const word &name, const dictionary &dict) |
Selector. More... | |
Public Attributes | |
Function2 | |
dictionary | |
const word & | name |
const word const dictionary & | dict |
const word const dictionary | name |
const word const dictionary | dict |
Protected Attributes | |
const word | name_ |
Name of entry. More... | |
Friends | |
Ostream & | operator (Ostream &os, const Function2< Type > &func) |
Ostream Operator. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from refCount | |
refCount () | |
Construct null initialising count to 0. More... | |
Run-time selectable function of two variables.
with many options provided from simple constant values to complex functions, interpolated tabulated data etc. etc.
Definition at line 52 of file Function2.H.
typedef Type returnType |
Definition at line 75 of file Function2.H.
|
virtual |
Destructor.
Definition at line 69 of file Function2.C.
TypeName | ( | "Function2< Type >" | ) |
Runtime type information.
Declare runtime constructor selection table
Construct and return a clone.
Implemented in FieldFunction2< Type, Function2Type >, FieldFunction2< Type, Constant< Type > >, FieldFunction2< Type, Scale< Type > >, FieldFunction2< Type, UniformTable< Type > >, FieldFunction2< Type, None< Type > >, FieldFunction2< Type, OneConstant< Type > >, FieldFunction2< scalar, UniformTable< scalar > >, FieldFunction2< scalar, APIdiffCoef >, FieldFunction2< Type, ZeroConstant< Type > >, Coded< Type >, Constant< Type >, and APIdiffCoef.
|
static |
Selector.
Definition at line 32 of file Function2New.C.
const word& name | ( | ) | const |
Return the name of the entry.
Referenced by FieldFunction2< Type, ZeroConstant< Type > >::~FieldFunction2().
|
pure virtual |
Return value as a function of two scalars.
Implemented in FieldFunction2< Type, Function2Type >, FieldFunction2< Type, Constant< Type > >, FieldFunction2< Type, Scale< Type > >, FieldFunction2< Type, UniformTable< Type > >, FieldFunction2< Type, None< Type > >, FieldFunction2< Type, OneConstant< Type > >, FieldFunction2< scalar, UniformTable< scalar > >, FieldFunction2< scalar, APIdiffCoef >, FieldFunction2< Type, ZeroConstant< Type > >, UniformTable< Type >, UniformTable< scalar >, Coded< Type >, Scale< Type >, Constant< Type >, APIdiffCoef, OneConstant< Type >, ZeroConstant< Type >, and None< Type >.
Referenced by Foam::evaluate().
|
pure virtual |
Return value as a function of two scalar fields.
Implemented in FieldFunction2< Type, Function2Type >, FieldFunction2< Type, Constant< Type > >, FieldFunction2< Type, Scale< Type > >, FieldFunction2< Type, UniformTable< Type > >, FieldFunction2< Type, None< Type > >, FieldFunction2< Type, OneConstant< Type > >, FieldFunction2< scalar, UniformTable< scalar > >, FieldFunction2< scalar, APIdiffCoef >, FieldFunction2< Type, ZeroConstant< Type > >, Coded< Type >, Constant< Type >, OneConstant< Type >, and ZeroConstant< Type >.
|
pure virtual |
Write in dictionary format.
Implemented in UniformTable< Type >, UniformTable< scalar >, Coded< Type >, APIdiffCoef, Constant< Type >, Scale< Type >, OneConstant< Type >, ZeroConstant< Type >, and None< Type >.
Referenced by Foam::writeEntry().
Assignment.
Definition at line 109 of file Function2.C.
|
protected |
Name of entry.
Definition at line 70 of file Function2.H.
Definition at line 84 of file Function2.H.
Definition at line 84 of file Function2.H.
const Foam::word & name |
Definition at line 84 of file Function2.H.
Referenced by Foam::evaluate(), and Foam::writeEntry().
const word const dictionary& dict |
Definition at line 84 of file Function2.H.
const word const dictionary name |
Definition at line 84 of file Function2.H.
const word const dictionary dict |
Definition at line 84 of file Function2.H.