Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
#include <Delegate.h>
Public Member Functions | |
__forceinline | Delegate () |
Instantiate a delegate object. More... | |
template<class ClassType > | |
__forceinline | Delegate (MethodDeclaration< ClassType > m, ClassType *c) |
Delegate a class method. More... | |
__forceinline | Delegate (FunctionDeclaration m) |
Delegate a function. More... | |
__forceinline ReturnType | operator() (ParamsList...params) const |
Invoke a delegate. More... | |
__forceinline | Delegate (Delegate &&that) |
Move a delegate from another object. More... | |
__forceinline | Delegate (const Delegate &that) |
Copy a delegate from another Delegate object. More... | |
__forceinline Delegate & | operator= (const Delegate &that) |
Copy a delegate from another Delegate object. More... | |
Delegate & | operator= (Delegate &&that) |
Move a delegate from another Delegate object. More... | |
__forceinline | operator bool () const |
Check for null pointer. More... | |
Protected Member Functions | |
void | copy (const Delegate &other) |
Delegate class.
|
inline |
Instantiate a delegate object.
|
inline |
Delegate a class method.
m | Method declaration to delegate |
c | Pointer to the class type |
|
inline |
Delegate a function.
m | Function declaration to delegate |
|
inline |
Move a delegate from another object.
that | Pointer to the delegate to move |
|
inline |
Copy a delegate from another Delegate object.
that | The delegate to copy |
|
inline |
Check for null pointer.
bool | False if null pointer |
|
inline |
Invoke a delegate.
params | Delegate parameters |
ReturnType | Return value from delgate |