X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FEventManager.hh;h=f08f0191c4763aebb7b69a54d27d48e0abe1b8e9;hb=8bc8b29a3c4c1b32b14e17d17e3f6c3ff565c9e9;hp=56a32ae413bf1dc465c1355c97817670fdfbe3bb;hpb=2da517bbcdb2af10d2322fc762ca27774b53b435;p=senf.git diff --git a/Scheduler/EventManager.hh b/Scheduler/EventManager.hh index 56a32ae..f08f019 100644 --- a/Scheduler/EventManager.hh +++ b/Scheduler/EventManager.hh @@ -65,11 +65,11 @@ namespace detail { ///@} /////////////////////////////////////////////////////////////////////////// - std::string const & name() const; - bool enabled() const; - unsigned runCount() const; - char const * type() const; - std::string info() const; + std::string const & name() const; ///< Get event name + bool enabled() const; ///< \c true, if event is enabled, \c false otherwise + unsigned runCount() const; ///< Number of times, event was fired + char const * type() const; ///< Event type code + std::string info() const; ///< Additional event information protected: void countRun(); @@ -88,15 +88,16 @@ namespace detail { class EventManager : public singleton { - struct IteratorFilter { - bool operator()(Event const & e); - }; - public: using singleton::instance; using singleton::alive; - typedef boost::filter_iterator iterator; + struct IteratorFilter { + bool operator()(Event const & e); + }; + + typedef boost::filter_iterator< + IteratorFilter, EventList::const_iterator> iterator; void add(Event & event); void remove(Event & event);