Go to the documentation of this file.
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,
80 const typename List::const_reference val,
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);
static constexpr const zero Zero
label min(const labelHashSet &set, label minValue=labelMax)
label max(const labelHashSet &set, label maxValue=labelMin)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
BinSum(const IndexType min, const IndexType max, const IndexType 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...
void add(const IndexType &indexVal, const typename List::const_reference val, const CombineOp &cop=plusEqOp< typename List::value_type >())