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

Class Below

test/int/cumulatives.cpp:142–151  ·  view source on GitHub ↗

Describe that event is below a certain limit

Source from the content-addressed store, hash-verified

140
141 /// Describe that event is below a certain limit
142 class Below {
143 public:
144 int limit; ///< limit
145 /// Initialize
146 Below(int l) : limit(l) {}
147 /// %Test whether \a val is below limit
148 bool operator()(int val) {
149 return val <= limit;
150 }
151 };
152 /// Describe that event is above a certain limit
153 class Above {
154 public:

Callers 1

solutionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected