Toast Engine
Loading...
Searching...
No Matches
event::Event< T > Class Template Reference

Base class for all events. Derive your event type as struct Derived : Event<Derived>. More...

#include <event.hpp>

Inherits event::_detail::IEvent.

Collaboration diagram for event::Event< T >:

Public Types

using callback_t = std::move_only_function<bool(T&)>
 callbacks that return 'true' are consumed and do not propogate
using iterator_t = std::multimap<char, void*, std::greater<>>::iterator

Public Attributes

friend T

Friends

class Listener
class ThreadListener
struct EventSystem

Detailed Description

template<typename T>
class event::Event< T >

Base class for all events. Derive your event type as struct Derived : Event<Derived>.

Maps callbacks to specific priorities that define the execution order If a callback returns true it consumes the event, preventing further propagation


The documentation for this class was generated from the following files: