|
STM32LIB
|
Describes a slot that may be added to a signal, or used stand-alone for a call-back. More...
#include <slot.h>
Public Types | |
| typedef Signature | FnPtr |
| A static function pointer with the correct signature. More... | |
Public Member Functions | |
| slot () | |
| Construct a slot with no call-back. More... | |
| slot (FnPtr fn) | |
| template<typename T , typename MemFnPtr > | |
| slot (T *obj, MemFnPtr fn) | |
| slot (const __this_type &slot) | |
| Copy constructor. More... | |
| ~slot () | |
| Destructor. More... | |
| __this_type & | operator= (const __this_type &slot) |
| template<class... Args> | |
| void | operator() (Args &&...args) const |
| bool | operator== (const __this_type &slot) const |
| bool | operator!= (const __this_type &slot) const |
| bool | operator< (const __this_type &slot) const |
| bool | operator> (const __this_type &slot) const |
| bool | operator<= (const __this_type &slot) const |
| bool | operator>= (const __this_type &slot) const |
Static Public Member Functions | |
| static slot< Signature > | bind (Signature fn) |
| template<typename T , typename MemFnPtr > | |
| static slot< Signature > | bind (T *obj, MemFnPtr fn) |
Private Types | |
| typedef slot< Signature > | __this_type |
| typedef fastdelegate::FastDelegate< Signature > | __impl_delegate |
| The implementation of the slot, as a delegate. More... | |
Private Attributes | |
| __impl_delegate | _delegate |
Describes a slot that may be added to a signal, or used stand-alone for a call-back.
This can be used as an alternative to std::function, as it is much faster.
|
private |
| typedef Signature wink::slot< Signature >::FnPtr |
A static function pointer with the correct signature.
|
private |
The implementation of the slot, as a delegate.
|
inline |
Construct a slot with no call-back.
|
inline |
Construct a slot with a static/global function call-back
| fn | The static/global function |
|
inline |
Construct a slot with a member-function
| obj | The object that the member-function belongs to |
| fn | The member function of the object |
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inlinestatic |
Binds a function
| fn | The function you wish to bind |
|
inlinestatic |
Binds a member function
| obj | The object you wish |
|
inline |
Assignment operator
| slot | The slot you wish to assign to |
|
inline |
Calls the slot
| args | Any arguments you want to pass to the slot |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
1.8.9.1