32template<
class IndexType,
class List,
class CombineOp>
49template<
class IndexType,
class List,
class CombineOp>
54 const IndexType
delta,
69 add(indexVals[i], vals[i], cop);
76template<
class IndexType,
class List,
class CombineOp>
79 const IndexType& indexVal,
88 else if (indexVal >= max_)
94 label index = (indexVal-min_)/delta_;
95 cop(this->
operator[](index), val);
100template<
class IndexType,
class List,
class CombineOp>
103 const UList<IndexType>& indexVals,
110 add(indexVals[i], vals[i], cop);
void add(const IndexType &indexVal, const typename List::const_reference val, const CombineOp &cop=plusEqOp< typename List::value_type >())
IndexType delta() const
Return the delta.
BinSum(const IndexType min, const IndexType max, const IndexType delta)
Construct given min, max, delta.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const T & const_reference
The type used for reading from constant value_type objects.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
void add(DimensionedField< scalar, GeoMesh > &result, const dimensioned< scalar > &dt1, const DimensionedField< scalar, GeoMesh > &f2)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0).
#define forAll(list, i)
Loop across all elements in list.