32 template<
class IndexType,
class List,
class CombineOp>
49 template<
class IndexType,
class List,
class CombineOp>
54 const IndexType
delta,
69 add(indexVals[i], vals[i], cop);
76 template<
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);
100 template<
class IndexType,
class List,
class CombineOp>
103 const UList<IndexType>& indexVals,
110 add(indexVals[i], vals[i], cop);
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
BinSum(const IndexType min, const IndexType max, const IndexType delta)
Construct given min, max, delta.
void add(const IndexType &indexVal, const typename List::const_reference val, const CombineOp &cop=plusEqOp< typename List::value_type >())
#define forAll(list, i)
Loop across all elements in list.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
const T & const_reference
The type used for reading from constant value_type objects.
static constexpr const zero Zero
Global zero (0)