7 #include <msp/time/timedelta.h>
23 inline PollEvent operator|(PollEvent e, PollEvent f)
24 { return PollEvent(static_cast<int>(e)|static_cast<int>(f)); }
26 inline PollEvent operator&(PollEvent e, PollEvent f)
27 { return PollEvent(static_cast<int>(e)&static_cast<int>(f)); }
29 inline PollEvent operator~(PollEvent e)
30 { return PollEvent(~static_cast<int>(e)); }
41 Slot(EventObject *o, PollEvent e): object(o), events(e) { }
44 typedef std::list<Slot> SlotList;
46 typedef std::map<EventObject *, PollEvent> EventMap;
58 void set_object(EventObject &, PollEvent);
60 int poll(const Time::TimeDelta &);
65 const SlotList &get_result() const { return poll_result; }
68 PollEvent poll(EventObject &, PollEvent);
69 PollEvent poll(EventObject &, PollEvent, const Time::TimeDelta &);