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

Go to the source code of this file.

Classes

struct  unitConversions
 
class  Function1< Type >
 Run-time selectable general function of one variable. More...
 
class  FieldFunction1< Type, Function1Type >
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::Function1s
 

Macros

#define defineFunction1(Type)
 
#define addFunction1(SS, Type)
 
#define addStreamConstructableFunction1(SS, Type)
 
#define addNamedFunction1(SS, Type, Name)
 
#define addScalarFunction1(SS)
 

Functions

template<class Type >
Ostream & operator<< (Ostream &, const Function1< Type > &)
 
void assertNoConvertUnits (const word &typeName, const Function1s::unitConversions &units, const dictionary &dict)
 Generate an error in an context where unit conversions are not supported. More...
 
void writeEntry (Ostream &os, const Function1s::unitConversions &units)
 Write a units entry. More...
 
Istream & operator>> (Istream &is, Function1s::unitConversions &)
 Read from stream. More...
 
Ostream & operator<< (Ostream &os, const Function1s::unitConversions &)
 Write to stream. More...
 
template<class Type >
void writeEntry (Ostream &os, const Function1< Type > &f1)
 
template<class Type >
void writeEntry (Ostream &os, const Function1s::unitConversions &units, const Function1< Type > &f1)
 
template<class Type >
void writeEntry (Ostream &os, const unitConversion &xUnits, const unitConversion &valueUnits, const Function1< Type > &f1)
 

Detailed Description

Original source file Function1.H

Definition in file Function1.H.

Macro Definition Documentation

◆ defineFunction1

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

Definition at line 349 of file Function1.H.

◆ addFunction1

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

Definition at line 356 of file Function1.H.

◆ addStreamConstructableFunction1

#define addStreamConstructableFunction1 (   SS,
  Type 
)
Value:
\
addFunction1(SS, Type); \
addToRunTimeSelectionTable \
( \
Type##Function1, \
Type##SS##Function1, \
Istream \
)

Definition at line 369 of file Function1.H.

◆ addNamedFunction1

#define addNamedFunction1 (   SS,
  Type,
  Name 
)
Value:
\
typedef Function1<Type> Type##Function1; \
typedef SS<Type> Type##SS##Function1; \
addNamedToRunTimeSelectionTable \
( \
Type##Function1, \
Type##SS##Function1, \
dictionary, \
Name \
)

Definition at line 380 of file Function1.H.

◆ addScalarFunction1

#define addScalarFunction1 (   SS)
Value:
\
defineTypeNameAndDebug(SS, 0); \
typedef Function1<scalar> scalarFunction1; \
addToRunTimeSelectionTable(scalarFunction1, SS, dictionary)

Definition at line 393 of file Function1.H.