|
| MethodCallback (const MethodCallback &rhs) noexcept=default |
|
MethodCallback & | operator= (const MethodCallback &rhs) noexcept=default |
|
template<typename ClassType > |
| MethodCallback (ClassType &objectRef, MethodPointer< ClassType > methodPtr) noexcept |
| Constructs a MethodCallback from a pointer to a specific object and a pointer to a method of that object. More...
|
|
| MethodCallback (MethodCallback &&rhs) noexcept |
| Move constructor. More...
|
|
MethodCallback & | operator= (MethodCallback &&rhs) noexcept |
| Move assignment operator. More...
|
|
template<typename... MethodArguments> |
expected< ReturnValue, MethodCallbackError > | operator() (MethodArguments &&... args) noexcept |
| Calls the method if the MethodCallback is valid, otherwise it will return MethodCallbackError::UNINITIALIZED_CALLBACK. More...
|
|
bool | operator== (const MethodCallback &rhs) const noexcept |
| Comparison operator. Two MethodCallbacks are equal if they have the same object pointer and method pointer.
|
|
bool | operator!= (const MethodCallback &rhs) const noexcept |
| Inequality operator. Two MethodCallbacks are not equal if they have different object or method pointer.
|
|
| operator bool () const noexcept |
| Verifies if the MethodCallback is valid. More...
|
|
bool | isValid () const noexcept |
| Verifies if the MethodCallback is valid. More...
|
|
template<typename ClassType > |
void | setCallback (ClassType &objectRef, MethodPointer< ClassType > methodPtr) noexcept |
| Sets a new callback. More...
|
|
template<typename ClassType > |
ClassType * | getObjectPointer () const noexcept |
| Returns objectRef.
|
|
template<typename ClassType > |
auto | getMethodPointer () const noexcept -> MethodPointer< ClassType > |
| Returns cond method pointer.
|
|