![]() |
libfilezilla
|
Events with associated source. More...
#include <event.hpp>


Public Types | |
| typedef UniqueType | unique_type |
| typedef std::tuple< Values... > | tuple_type |
Public Member Functions | |
| template<typename First_Value , typename... Remaining_Values> | |
| event_with_source (First_Value &&value, Remaining_Values &&...values) | |
| virtual size_t | derived_type () const override |
| virtual event_source * | source () const override |
Static Public Member Functions | |
| static size_t | type () |
Public Attributes | |
| tuple_type | v_ |
Events with associated source.
This is similar to simple_event, except that the type of the first event value is derived from event_source.
Pending events from a given source can easily be removed using event_handler::remove_events
|
inlineoverridevirtual |
The returned pointer must be unique for the derived type such that: event_base& a = ... event_base& b = ... assert((a.derived_type() == b.derived_type()) == (typeid(a) == typeid(b)));
Best solution is to have your derived type return the address of a static data member of it, as done in simple_event.
Implements event_base.
1.8.10