34 template<
class>
class GeoField,
35 template<
class ...>
class Op,
42 const GeoField<TypeA>& a,
43 const GeoField<TypeB>& b
46 return store(resultName_,
Op<GeoField<TypeA>, GeoField<TypeB>>()(a, b));
52 template<
class>
class GeoField,
53 template<
class ...>
class Op,
67 template<
class>
class GeoField,
68 template<
class ...>
class Op,
97 const GeoField<TypeB>& b =
101 return opAndStore<GeoField, Op>(a(),
b);
110 template<
class>
class GeoField,
111 template<
class ...>
class Op,
118 #define processType(Type, none) \ 119 success = success || foldAB<GeoField, Op, TypeA, Type>(i); 127 template<
template<
class>
class GeoField,
template<
class ...>
class Op>
132 #define processType(Type, none) \ 133 success = success || foldA<GeoField, Op, Type>(i); 141 template<
template<
class>
class GeoField,
template<
class ...>
class Op>
146 if (!fold<GeoField, Op>(i))
156 template<
template<
class ...>
class Op>
160 calcGeoFieldOp<VolField, Op>()
161 || calcGeoFieldOp<SurfaceField, Op>();
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
#define processType(Type, none)
#define FOR_ALL_FIELD_TYPES(Macro,...)
const ObjectType & lookupObject(const word &fieldName) const
Lookup object from the objectRegistry.
wordList fieldNames_
Names of fields to process.
bool foldA(const label i)
Fold the fields expression up one place.
bool calcGeoFieldOp()
Calculate and store the fields expression for the given geometric.
bool foundObject(const word &fieldName) const
Find field in the objectRegistry.
bool foldAB(const label i)
Fold the fields expression up one place.
bool fold(const label i)
Fold the fields expression up one place.
bool clearObject(const word &fieldName)
Clear field from the objectRegistry if present.
bool store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
word resultName_
Name of result fields.
bool calcOp()
Calculate and store the fields expression for the given operation.
autoPtr< functionObject > clone() const
Return clone.
A class for managing temporary objects.
bool opAndStore(const GeoField< TypeA > &a, const GeoField< TypeB > &b)
Operate on the fields and store the result. Supported overload.