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

Class Event

test/int/cumulatives.cpp:129–139  ·  view source on GitHub ↗

%Event to be scheduled

Source from the content-addressed store, hash-verified

127
128 /// %Event to be scheduled
129 class Event {
130 public:
131 int p, h; ///< Position and height of event
132 bool start; ///< Whether event has just started
133 /// Initialize event
134 Event(int pos, int height, bool s) : p(pos), h(height), start(s) {}
135 /// %Test whether this event is before event \a e
136 bool operator<(const Event& e) const {
137 return p<e.p;
138 }
139 };
140
141 /// Describe that event is below a certain limit
142 class Below {

Callers 1

solutionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected