| 42 | |
| 43 | template<class View, class A> |
| 44 | inline |
| 45 | SupportValues<View,A>::SupportValues(A& a0, View x0) |
| 46 | : a(a0), x(x0), bs(a,x.size(),true) { |
| 47 | unsigned int n = 0; |
| 48 | for (ViewRanges<View> r(x); r(); ++r) |
| 49 | n++; |
| 50 | rp_fst = a.template alloc<RangePos>(n+1); |
| 51 | rp_lst = rp_fst + n; |
| 52 | unsigned int p = 0; |
| 53 | int i = 0; |
| 54 | for (ViewRanges<View> r(x); r(); ++r) { |
| 55 | rp_fst[i].min = r.min(); |
| 56 | rp_fst[i].pos = p; |
| 57 | p += r.width(); i++; |
| 58 | } |
| 59 | rp_fst[i].pos=p; |
| 60 | reset(); |
| 61 | } |
| 62 | |
| 63 | template<class View, class A> |
| 64 | forceinline |