mn::base_event< TSender, TArgs > Struct Template Reference
#include <mn_event.hpp>
Collaboration diagram for mn::base_event< TSender, TArgs >:
Public Types | |
using | self_type = base_event< TSender, TArgs > |
using | args_type = TArgs |
using | sender_type = TSender |
using | sender_reference = TSender & |
using | function_type = mn::function< void(sender_reference, const args_type)> |
Public Member Functions | |
base_event (function_type func) | |
base_event (const self_type &other) | |
base_event (const self_type &&other) | |
void | emit (const sender_type &sender, const args_type args) |
bool | operator== (const self_type &pOther) |
self_type & | operator= (self_type &other) |
function_type | get_function () |
Protected Attributes | |
function_type | m_ptr2Func |
Member Typedef Documentation
◆ args_type
template<class TSender , typename TArgs = base_eventargs>
using mn::base_event< TSender, TArgs >::args_type = TArgs |
◆ function_type
template<class TSender , typename TArgs = base_eventargs>
using mn::base_event< TSender, TArgs >::function_type = mn::function<void(sender_reference, const args_type)> |
◆ self_type
template<class TSender , typename TArgs = base_eventargs>
using mn::base_event< TSender, TArgs >::self_type = base_event<TSender, TArgs> |
◆ sender_reference
template<class TSender , typename TArgs = base_eventargs>
using mn::base_event< TSender, TArgs >::sender_reference = TSender& |
◆ sender_type
template<class TSender , typename TArgs = base_eventargs>
using mn::base_event< TSender, TArgs >::sender_type = TSender |
Constructor & Destructor Documentation
◆ base_event() [1/3]
template<class TSender , typename TArgs = base_eventargs>
|
inline |
◆ base_event() [2/3]
template<class TSender , typename TArgs = base_eventargs>
|
inline |
◆ base_event() [3/3]
template<class TSender , typename TArgs = base_eventargs>
|
inline |
Member Function Documentation
◆ emit()
template<class TSender , typename TArgs = base_eventargs>
|
inline |
◆ get_function()
template<class TSender , typename TArgs = base_eventargs>
|
inline |
◆ operator=()
template<class TSender , typename TArgs = base_eventargs>
|
inline |
◆ operator==()
template<class TSender , typename TArgs = base_eventargs>
|
inline |
Member Data Documentation
◆ m_ptr2Func
template<class TSender , typename TArgs = base_eventargs>
|
protected |
The documentation for this struct was generated from the following file: