Go to the documentation of this file.
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 \
269 return (a <
b) ? -1 : (
b < a) ? 1 : 0;
Deprecated(2020-11) use typeOp (word.H)
Scalar cmptPow(const Scalar s1, const Scalar s2)
#define WeightedOp(opName, op)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
static bool less(const vector &x, const vector &y)
To compare normals.
Three-way comparison operation of two parameters,.
#define Bool1Op(opName, op)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
Type maxMagSqr(const UList< Type > &f)
int operator()(const T &a, const T &b) const
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Extract name (as a word) from an object, typically using its name() method.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
#define BoolOp(opName, op)
Deprecated(2020-11) use nameOp (word.H)
Type minMagSqr(const UList< Type > &f)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Scalar minMod(const Scalar s1, const Scalar s2)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
bool equal(const T &s1, const T &s2)
Compare two values for equality.
bool notEqual(const Scalar s1, const Scalar s2)
Extract type (as a word) from an object, typically using its type() method.