MCPcopy Create free account
hub / github.com/Gecode/gecode / lshift

Method lshift

gecode/int/extensional/layered-graph.hpp:200–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

copyMethod · 0.80

Calls 2

emptyFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected