20  template<
typename object_t, 
typename handler_t>
 
   21  class event : 
protected handler_t {
 
   26    bool is_empty() const noexcept { 
return handler_t::is_empty(); }
 
   31    handler_t& 
operator+=(
const handler_t& handler) 
noexcept {
 
   32      return handler_t::operator+=(handler);
 
   38    handler_t& 
operator+=(
const typename handler_t::function_t& function) 
noexcept {
 
   39      return handler_t::operator+=(function);
 
   45    template<
typename fn_t>
 
   47      return handler_t::operator+=(function);
 
   53    handler_t& 
operator-=(
const handler_t& handler) 
noexcept {
 
   54      return handler_t::operator-=(handler);
 
   60    handler_t& 
operator-=(
const typename handler_t::function_t& function) 
noexcept {
 
   61      return handler_t::operator-=(function);
 
   67    template<
typename fn_t>
 
   69      return handler_t::operator-=(function);
 
Represents an event.
Definition: event.h:21
 
handler_t & operator-=(const typename handler_t::function_t &function) noexcept
Removes a function to the event.
Definition: event.h:60
 
handler_t & operator-=(fn_t function) noexcept
Removes a function to the event.
Definition: event.h:68
 
handler_t & operator+=(const typename handler_t::function_t &function) noexcept
Adds a function to the event.
Definition: event.h:38
 
handler_t & operator+=(const handler_t &handler) noexcept
Adds an handler to the event.
Definition: event.h:31
 
handler_t & operator-=(const handler_t &handler) noexcept
Removes an handler to the event.
Definition: event.h:53
 
bool is_empty() const noexcept
Gets a value indicate if the event is empty.
Definition: event.h:26
 
handler_t & operator+=(fn_t function) noexcept
Adds a function to the event.
Definition: event.h:46
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17