]> git.tdb.fi Git - libs/core.git/blobdiff - source/poll.h
Move class members and comments around
[libs/core.git] / source / poll.h
index 0f97cb100e208233e55d13aac73d1178726ab59a..6367d8f2b301544f26953220284868d7658b22fb 100644 (file)
@@ -33,6 +33,7 @@ inline PollEvent operator&(PollEvent e, PollEvent f)
 inline PollEvent operator~(PollEvent e)
 { return PollEvent(~static_cast<int>(e)); }
 
+
 class Poller
 {
 public:
@@ -43,13 +44,8 @@ public:
 
                Slot(Base *o, PollEvent e): object(o), events(e) { }
        };
-       typedef std::list<Slot> SlotSeq;
 
-       Poller();
-       void set_object(Base &, PollEvent);
-       int  poll();
-       int  poll(const Time::TimeDelta &);
-       const SlotSeq &get_result() const { return poll_result; }
+       typedef std::list<Slot> SlotSeq;
 private:
        typedef std::map<Base *, Slot> SlotMap;
 
@@ -67,6 +63,14 @@ private:
 
        void rebuild_pfd();
        int do_poll(int);
+
+public:
+       Poller();
+
+       void set_object(Base &, PollEvent);
+       int poll();
+       int poll(const Time::TimeDelta &);
+       const SlotSeq &get_result() const { return poll_result; }
 };
 
 PollEvent poll(Base &, PollEvent);