Template class representing an event that executes event functions.
More...
#include <EventEntities.hpp>
|
event_delegate_token | add (event_delegate< return_type, arg_types... > &&eventDelegate) |
| Add an event delegate to the event. More...
|
|
void | erase (const event_delegate_token &eventToken) |
| Remove an event delegate from the event. More...
|
|
| event () |
| Default constructor for event class.
|
|
| event (event &&other) noexcept |
| Move constructor for the event class. this constructor moves the contents of another event instance, 'other', into the current instance. it performs a move assignment using the 'operator=' function. More...
|
|
void | operator() (const arg_types &... args) |
| Invoke the event with provided arguments. More...
|
|
event & | operator= (event &&other) noexcept |
| Move assignment operator for the event class. this operator moves the contents of another event instance, 'other', into the current instance. it transfers the functions and eventId from 'other' to the current instance, clearing 'other' in the process. More...
|
|
◆ event()
template<typename return_type , typename... arg_types>
- Parameters
-
other | the event instance to be moved from. |
Definition at line 173 of file EventEntities.hpp.
◆ add()
template<typename return_type , typename... arg_types>
◆ erase()
template<typename return_type , typename... arg_types>
- Parameters
-
eventToken | the token representing the event delegate to remove. |
Definition at line 198 of file EventEntities.hpp.
◆ operator()()
template<typename return_type , typename... arg_types>
- Parameters
-
args | the arguments to pass to the event delegates. |
Definition at line 209 of file EventEntities.hpp.
◆ operator=()
template<typename return_type , typename... arg_types>
- Parameters
-
other | the event instance to be moved from. |
- Returns
- reference to the current event instance after the move assignment.
Definition at line 161 of file EventEntities.hpp.
The documentation for this class was generated from the following file: