Go to the documentation of this file.
30 template<
class IndexType,
class List,
class CombineOp>
47 template<
class IndexType,
class List,
class CombineOp>
52 const IndexType
delta,
67 add(indexVals[i], vals[i], cop);
74 template<
class IndexType,
class List,
class CombineOp>
77 const IndexType& indexVal,
78 const typename List::const_reference val,
86 else if (indexVal >= max_)
92 label index = (indexVal-min_)/delta_;
93 cop(this->
operator[](index), val);
98 template<
class IndexType,
class List,
class CombineOp>
108 add(indexVals[i], vals[i], cop);
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
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...
Traits class for primitives.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
void add(const IndexType &indexVal, const typename List::const_reference val, const CombineOp &cop=plusEqOp< typename List::value_type >())