Function2.H File Reference
Include dependency graph for Function2.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  unitConversions
 
class  Function2< Type >
 Run-time selectable function of two variables. More...
 
class  FieldFunction2< Type, Function2Type >
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::Function2s
 

Macros

#define defineFunction2(Type)
 
#define addFunction2(SS, Type)
 
#define addStreamConstructableFunction2(SS, Type)
 
#define addScalarFunction2(SS)
 

Functions

template<class Type >
Ostream & operator<< (Ostream &, const Function2< Type > &)
 
void assertNoConvertUnits (const word &typeName, const Function2s::unitConversions &units, const dictionary &dict)
 Generate an error in an context where unit conversions are not supported. More...
 
template<class Type >
void writeEntry (Ostream &os, const Function2< Type > &f2)
 
template<class Type >
void writeEntry (Ostream &os, const Function2s::unitConversions &units, const Function2< Type > &f2)
 
template<class Type >
void writeEntry (Ostream &os, const unitConversion &xUnits, const unitConversion &yUnits, const unitConversion &valueUnits, const Function2< Type > &f2)
 

Detailed Description

Original source file Function2.H

Definition in file Function2.H.

Macro Definition Documentation

◆ defineFunction2

#define defineFunction2 (   Type)
Value:
\
defineNamedTemplateTypeNameAndDebug(Function2<Type>, 0); \
defineTemplateRunTimeSelectionTable(Function2<Type>, dictionary); \
defineTemplateRunTimeSelectionTable(Function2<Type>, Istream);

Definition at line 310 of file Function2.H.

◆ addFunction2

#define addFunction2 (   SS,
  Type 
)
Value:
\
defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
typedef Function2<Type> Type##Function2; \
typedef SS<Type> Type##SS##Function2; \
addToRunTimeSelectionTable \
( \
Type##Function2, \
Type##SS##Function2, \
dictionary \
)

Definition at line 317 of file Function2.H.

◆ addStreamConstructableFunction2

#define addStreamConstructableFunction2 (   SS,
  Type 
)
Value:
\
addFunction2(SS, Type); \
addToRunTimeSelectionTable \
( \
Type##Function2, \
Type##SS##Function2, \
Istream \
)

Definition at line 330 of file Function2.H.

◆ addScalarFunction2

#define addScalarFunction2 (   SS)
Value:
\
defineTypeNameAndDebug(SS, 0); \
typedef Function2<scalar> scalarFunction2; \
addToRunTimeSelectionTable(scalarFunction2, SS, dictionary)

Definition at line 341 of file Function2.H.