50#define EqOp(opName, op) \
52 template<class T1, class T2> \
55 void operator()(T1& x, const T2& y) const \
64 void operator()(T& x, const T& y) const \
103#define WARNRETURN __attribute__((warn_unused_result))
112#define Op(opName, op) \
114 template<class T, class T1, class T2> \
117 T operator()(const T1& x, const T2& y) const WARNRETURN \
123 template<class T1, class T2> \
126 T1 operator()(const T1& x, const T2& y) const WARNRETURN \
135 T operator()(const T& x, const T& y) const WARNRETURN \
144#define BoolOp(opName, op) \
146 template<class T1, class T2> \
149 bool operator()(const T1& x, const T2& y) const WARNRETURN \
158 bool operator()(const T& x, const T& y) const WARNRETURN \
168#define Bool1Op(opName, op) \
175 opName##Op1(const T& v) : value(v) {} \
177 bool operator()(const T& x) const WARNRETURN \
186#define WeightedOp(opName, op) \
188 template<class T, class CombineOp> \
189 class opName##WeightedOp \
191 const CombineOp& cop_; \
195 opName##WeightedOp(const CombineOp& cop) \
205 const scalar weight \
272 return (a <
b) ? -1 : (
b < a) ? 1 : 0;
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
bool notEqual(const Scalar s1, const Scalar s2)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Scalar minMod(const Scalar s1, const Scalar s2)
Scalar cmptPow(const Scalar s1, const Scalar s2)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
Type maxMagSqr(const UList< Type > &f)
bool equal(const T &s1, const T &s2)
Compare two values for equality.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static bool less(const vector &x, const vector &y)
To compare normals.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
Type minMagSqr(const UList< Type > &f)
void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
#define WeightedOp(opName, op)
#define BoolOp(opName, op)
#define Bool1Op(opName, op)
Three-way comparison operation of two parameters,.
int operator()(const T &a, const T &b) const
Deprecated(2020-11) use nameOp (word.H)
Deprecated(2020-11) use typeOp (word.H)
Extract name (as a word) from an object, typically using its name() method.
Extract type (as a word) from an object, typically using its type() method.