Lines Matching defs:Event
140 struct Event {
144 Event(EventType t, Node *v, double p) : type(t),v(v),pos(p) {};
146 Event **events;
148 Event *ea=*(Event**)a;
149 Event *eb=*(Event**)b;
174 events=new Event*[2*n];
179 events[ctr++]=new Event(Open,v,rs[i]->getMinY());
180 events[ctr++]=new Event(Close,v,rs[i]->getMaxY());
182 qsort((Event*)events, (size_t)2*n, sizeof(Event*), compare_events );
187 Event *e=events[i];
258 events=new Event*[2*n];
263 events[ctr++]=new Event(Open,v,rs[i]->getMinX());
264 events[ctr++]=new Event(Close,v,rs[i]->getMaxX());
266 qsort((Event*)events, (size_t)2*n, sizeof(Event*), compare_events );
270 Event *e=events[i];