| 198 | } |
| 199 | template<class View, class Val, class Degree, class StateIdx> |
| 200 | forceinline void |
| 201 | LayeredGraph<View,Val,Degree,StateIdx>::IndexRange::lshift(int n) { |
| 202 | if (empty()) |
| 203 | return; |
| 204 | if (n > _lst) { |
| 205 | reset(); |
| 206 | } else { |
| 207 | _fst = std::max(0,_fst-n); |
| 208 | _lst -= n; |
| 209 | } |
| 210 | } |
| 211 | template<class View, class Val, class Degree, class StateIdx> |
| 212 | forceinline int |
| 213 | LayeredGraph<View,Val,Degree,StateIdx>::IndexRange::fst(void) const { |