%Event to be scheduled
| 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 { |