sead
Loading...
Searching...
No Matches
sead::DelegateEvent< T >::Slot Class Reference

#include <seadDelegateEventSlot.h>

Inherits sead::IDisposer.

Public Member Functions

 Slot ()
virtual ~Slot ()
template<typename U>
 Slot (U *u, void(U::*fun)(T))
template<typename U>
void bind (U *u, void(U::*fun)(T))
void release ()
bool isConnectedToDelegateEvent () const
Public Member Functions inherited from sead::IDisposer
 IDisposer ()
virtual ~IDisposer ()

Protected Member Functions

void invoke_ (T e)

Protected Attributes

SlotListNode mNode
IDelegate1< T > * mDelegatePtr
struct { 
   u8   data_ [20] 
mDelegate
bool mConnectedToDelegateEvent

Friends

class DelegateEvent

Constructor & Destructor Documentation

◆ Slot() [1/2]

template<typename T>
sead::DelegateEvent< T >::Slot::Slot ( )
inlineexplicit

◆ ~Slot()

template<typename T>
virtual sead::DelegateEvent< T >::Slot::~Slot ( )
inlinevirtual

◆ Slot() [2/2]

template<typename T>
template<typename U>
sead::DelegateEvent< T >::Slot::Slot ( U * u,
void(U::* fun )(T) )
inlineexplicit

Member Function Documentation

◆ bind()

template<typename T>
template<typename U>
void sead::DelegateEvent< T >::Slot::bind ( U * u,
void(U::* fun )(T) )
inline

◆ release()

template<typename T>
void sead::DelegateEvent< T >::Slot::release ( )
inline

◆ isConnectedToDelegateEvent()

template<typename T>
bool sead::DelegateEvent< T >::Slot::isConnectedToDelegateEvent ( ) const
inline

◆ invoke_()

template<typename T>
void sead::DelegateEvent< T >::Slot::invoke_ ( T e)
inlineprotected

◆ DelegateEvent

template<typename T>
friend class DelegateEvent
friend

Member Data Documentation

◆ mNode

template<typename T>
SlotListNode sead::DelegateEvent< T >::Slot::mNode
protected

◆ mDelegatePtr

template<typename T>
IDelegate1<T>* sead::DelegateEvent< T >::Slot::mDelegatePtr
protected

◆ data_

template<typename T>
u8 sead::DelegateEvent< T >::Slot::data_[20]

◆ [struct]

struct { ... } sead::DelegateEvent< T >::Slot::mDelegate

◆ mConnectedToDelegateEvent

template<typename T>
bool sead::DelegateEvent< T >::Slot::mConnectedToDelegateEvent
protected