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_typeoperator= (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>
mn::base_event< TSender, TArgs >::base_event ( function_type  func)
inline

◆ base_event() [2/3]

template<class TSender , typename TArgs = base_eventargs>
mn::base_event< TSender, TArgs >::base_event ( const self_type other)
inline

◆ base_event() [3/3]

template<class TSender , typename TArgs = base_eventargs>
mn::base_event< TSender, TArgs >::base_event ( const self_type &&  other)
inline

Member Function Documentation

◆ emit()

template<class TSender , typename TArgs = base_eventargs>
void mn::base_event< TSender, TArgs >::emit ( const sender_type sender,
const args_type  args 
)
inline

◆ get_function()

template<class TSender , typename TArgs = base_eventargs>
function_type mn::base_event< TSender, TArgs >::get_function ( )
inline

◆ operator=()

template<class TSender , typename TArgs = base_eventargs>
self_type& mn::base_event< TSender, TArgs >::operator= ( self_type other)
inline

◆ operator==()

template<class TSender , typename TArgs = base_eventargs>
bool mn::base_event< TSender, TArgs >::operator== ( const self_type pOther)
inline

Member Data Documentation

◆ m_ptr2Func

template<class TSender , typename TArgs = base_eventargs>
function_type mn::base_event< TSender, TArgs >::m_ptr2Func
protected

The documentation for this struct was generated from the following file: