Macros
FieldFunctionsM.C File Reference
Include dependency graph for FieldFunctionsM.C:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UNARY_FUNCTION(ReturnType, Type, Func)
 
#define UNARY_OPERATOR(ReturnType, Type, Op, OpFunc)
 
#define BINARY_FUNCTION(ReturnType, Type1, Type2, Func)
 
#define BINARY_TYPE_FUNCTION_SF(ReturnType, Type1, Type2, Func)
 
#define BINARY_TYPE_FUNCTION_FS(ReturnType, Type1, Type2, Func)
 
#define BINARY_TYPE_FUNCTION(ReturnType, Type1, Type2, Func)
 
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpFunc)
 
#define BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpFunc)
 
#define BINARY_TYPE_OPERATOR_FS(ReturnType, Type1, Type2, Op, OpFunc)
 
#define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpFunc)
 

Detailed Description

Original source file FieldFunctionsM.C

Definition in file FieldFunctionsM.C.

Macro Definition Documentation

◆ UNARY_FUNCTION

#define UNARY_FUNCTION (   ReturnType,
  Type,
  Func 
)
Value:
\
TEMPLATE \
void Func(Field<ReturnType>& res, const UList<Type>& f) \
{ \
TFOR_ALL_F_OP_FUNC_F(ReturnType, res, =, ::Foam::Func, Type, f) \
} \
\
TEMPLATE \
tmp<Field<ReturnType>> Func(const UList<Type>& f) \
{ \
auto tres = tmp<Field<ReturnType>>::New(f.size()); \
Func(tres.ref(), f); \
return tres; \
} \
\
TEMPLATE \
tmp<Field<ReturnType>> Func(const tmp<Field<Type>>& tf) \
{ \
Func(tres.ref(), tf()); \
tf.clear(); \
return tres; \
}

Definition at line 27 of file FieldFunctionsM.C.

◆ UNARY_OPERATOR

#define UNARY_OPERATOR (   ReturnType,
  Type,
  Op,
  OpFunc 
)
Value:
\
TEMPLATE \
void OpFunc(Field<ReturnType>& res, const UList<Type>& f) \
{ \
TFOR_ALL_F_OP_OP_F(ReturnType, res, =, Op, Type, f) \
} \
\
TEMPLATE \
tmp<Field<ReturnType>> operator Op(const UList<Type>& f) \
{ \
auto tres = tmp<Field<ReturnType>>::New(f.size()); \
OpFunc(tres.ref(), f); \
return tres; \
} \
\
TEMPLATE \
tmp<Field<ReturnType>> operator Op(const tmp<Field<Type>>& tf) \
{ \
OpFunc(tres.ref(), tf()); \
tf.clear(); \
return tres; \
}

Definition at line 55 of file FieldFunctionsM.C.

◆ BINARY_FUNCTION

#define BINARY_FUNCTION (   ReturnType,
  Type1,
  Type2,
  Func 
)

Definition at line 83 of file FieldFunctionsM.C.

◆ BINARY_TYPE_FUNCTION_SF

#define BINARY_TYPE_FUNCTION_SF (   ReturnType,
  Type1,
  Type2,
  Func 
)

Definition at line 154 of file FieldFunctionsM.C.

◆ BINARY_TYPE_FUNCTION_FS

#define BINARY_TYPE_FUNCTION_FS (   ReturnType,
  Type1,
  Type2,
  Func 
)

Definition at line 196 of file FieldFunctionsM.C.

◆ BINARY_TYPE_FUNCTION

#define BINARY_TYPE_FUNCTION (   ReturnType,
  Type1,
  Type2,
  Func 
)
Value:
BINARY_TYPE_FUNCTION_SF(ReturnType, Type1, Type2, Func) \
BINARY_TYPE_FUNCTION_FS(ReturnType, Type1, Type2, Func)

Definition at line 238 of file FieldFunctionsM.C.

◆ BINARY_OPERATOR

#define BINARY_OPERATOR (   ReturnType,
  Type1,
  Type2,
  Op,
  OpFunc 
)

Definition at line 245 of file FieldFunctionsM.C.

◆ BINARY_TYPE_OPERATOR_SF

#define BINARY_TYPE_OPERATOR_SF (   ReturnType,
  Type1,
  Type2,
  Op,
  OpFunc 
)

Definition at line 313 of file FieldFunctionsM.C.

◆ BINARY_TYPE_OPERATOR_FS

#define BINARY_TYPE_OPERATOR_FS (   ReturnType,
  Type1,
  Type2,
  Op,
  OpFunc 
)

Definition at line 352 of file FieldFunctionsM.C.

◆ BINARY_TYPE_OPERATOR

#define BINARY_TYPE_OPERATOR (   ReturnType,
  Type1,
  Type2,
  Op,
  OpFunc 
)
Value:
BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpFunc) \
BINARY_TYPE_OPERATOR_FS(ReturnType, Type1, Type2, Op, OpFunc)

Definition at line 391 of file FieldFunctionsM.C.

BINARY_TYPE_OPERATOR_SF
#define BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpFunc)
Definition: FieldFunctionsM.C:313
BINARY_TYPE_FUNCTION_SF
#define BINARY_TYPE_FUNCTION_SF(ReturnType, Type1, Type2, Func)
Definition: FieldFunctionsM.C:154
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Definition: DimensionedFieldReuseFunctions.H:100
f
labelList f(nPoints)
Op
#define Op(opName, op)
Definition: ops.H:106