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,
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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 >())
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
Type that can be used for storing into.