FreeFOAM The Cross-Platform CFD Toolkit
FieldFunctionsM.C File Reference

Detailed Description

Definition in file FieldFunctionsM.C.

+ 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)

Macro Definition Documentation

#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) \
{ \
tmp<Field<ReturnType> > tRes(new Field<ReturnType>(f.size())); \
Func(tRes(), f); \
return tRes; \
} \
\
TEMPLATE \
tmp<Field<ReturnType> > Func(const tmp<Field<Type> >& tf) \
{ \
tmp<Field<ReturnType> > tRes = reuseTmp<ReturnType, Type>::New(tf); \
Func(tRes(), tf()); \
return tRes; \
}

Definition at line 31 of file FieldFunctionsM.C.

#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) \
{ \
tmp<Field<ReturnType> > tRes(new Field<ReturnType>(f.size())); \
OpFunc(tRes(), f); \
return tRes; \
} \
\
TEMPLATE \
tmp<Field<ReturnType> > operator Op(const tmp<Field<Type> >& tf) \
{ \
tmp<Field<ReturnType> > tRes = reuseTmp<ReturnType, Type>::New(tf); \
OpFunc(tRes(), tf()); \
return tRes; \
}

Definition at line 59 of file FieldFunctionsM.C.

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

Definition at line 87 of file FieldFunctionsM.C.

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

Definition at line 158 of file FieldFunctionsM.C.

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

Definition at line 200 of file FieldFunctionsM.C.

#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 242 of file FieldFunctionsM.C.

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

Definition at line 249 of file FieldFunctionsM.C.

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

Definition at line 317 of file FieldFunctionsM.C.

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

Definition at line 356 of file FieldFunctionsM.C.

#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 395 of file FieldFunctionsM.C.