32 |
inline void binaryOp(DataTagged& left, const DataConstant& right, |
inline void binaryOp(DataTagged& left, const DataConstant& right, |
33 |
BinaryFunction operation) |
BinaryFunction operation) |
34 |
{ |
{ |
|
// |
|
|
// perform the operation on each tagged value including the default |
|
35 |
binaryOp(left,right.getPointDataView(),operation); |
binaryOp(left,right.getPointDataView(),operation); |
36 |
} |
} |
37 |
|
|
56 |
} |
} |
57 |
// |
// |
58 |
// finally perform the operation on the default value |
// finally perform the operation on the default value |
59 |
left.getDefaultValue().binaryOp(right,operation); |
if (right.getRank()==0) { |
60 |
|
left.getDefaultValue().binaryOp(0,right(),operation); |
61 |
|
} else { |
62 |
|
left.getDefaultValue().binaryOp(right,operation); |
63 |
|
} |
64 |
} |
} |
65 |
|
|
66 |
template <class BinaryFunction> |
template <class BinaryFunction> |