Event-delegate, representing an event function to be executed.
More...
#include <EventEntities.hpp>
|
| event_delegate ()=default |
| Default constructor for event_delegate class.
|
|
| event_delegate (event_delegate &&other) noexcept |
| Move constructor for the event_delegate class. this constructor moves the contents of another event_delegate instance, 'other', into the current instance. it performs a move assignment using the 'operator=' function. More...
|
|
| event_delegate (return_type(*functionNew)(arg_types...)) |
| Constructor for the event_delegate class, taking a pointer to a function as an argument. this constructor initializes the event_delegate instance with the provided function pointer. it calls the assignment operator to set the delegate function using the provided function pointer. More...
|
|
| event_delegate (std::function< return_type(arg_types...)> functionNew) |
| Constructor, taking a std::function<return_type(arg_types...)> as an argument. More...
|
|
event_delegate & | operator= (event_delegate &&other) noexcept |
| Move assignment operator for the event_delegate class. this operator moves the contents of another event_delegate instance, 'other', into the current instance. it swaps the 'function' member between 'other' and the current instance, and then clears 'other' function. More...
|
|
event_delegate & | operator= (return_type(*functionNew)(arg_types...)) |
| Assignment operator to set the delegate function using a function pointer. this operator assigns a new function pointer, 'functionNew', as the delegate function of the current instance. More...
|
|
event_delegate & | operator= (std::function< return_type(arg_types...)> functionNew) |
| Assignment operator to set the delegate function. this operator assigns a new std::function, 'functionNew', as the delegate function of the current instance. More...
|
|
◆ event_delegate() [1/3]
template<typename return_type , typename... arg_types>
◆ event_delegate() [2/3]
template<typename return_type , typename... arg_types>
- Parameters
-
functionNew | the function to construct as the current event. |
Definition at line 122 of file EventEntities.hpp.
◆ event_delegate() [3/3]
template<typename return_type , typename... arg_types>
- Parameters
-
functionNew | the function to construct as the current event. |
Definition at line 139 of file EventEntities.hpp.
◆ operator=() [1/3]
template<typename return_type , typename... arg_types>
◆ operator=() [2/3]
template<typename return_type , typename... arg_types>
- Parameters
-
functionNew | the function pointer to assign as the current event. |
- Returns
- reference to the current event_delegate instance after the assignment.
Definition at line 130 of file EventEntities.hpp.
◆ operator=() [3/3]
template<typename return_type , typename... arg_types>
- Parameters
-
functionNew | the std::function to assign as the current event. |
- Returns
- reference to the current event_delegate instance after the assignment.
Definition at line 115 of file EventEntities.hpp.
The documentation for this class was generated from the following file: