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

Function disjoint

gecode/iter/ranges-operations.hpp:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110 template<class I, class J>
111 forceinline bool
112 disjoint(I& i, J& j) {
113 // Are i and j disjoint?
114 while (i() && j())
115 if (j.max() < i.min()) {
116 ++j;
117 } else if (i.max() < j.min()) {
118 ++i;
119 } else {
120 return false;
121 }
122 return true;
123 }
124
125 template<class I, class J>
126 forceinline CompareStatus

Callers 6

propagateMethod · 0.85
excludesFunction · 0.85
propagateMethod · 0.85
propagateMethod · 0.85
postnegcompactFunction · 0.85
postrecompactFunction · 0.85

Calls 4

jFunction · 0.85
iFunction · 0.70
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected