|
|
| 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.
|
| |
| | MethodCallback (MethodCallback &&rhs) noexcept |
| | Move constructor.
|
| |
| MethodCallback & | operator= (MethodCallback &&rhs) noexcept |
| | Move assignment operator.
|
| |
| 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.
|
| |
|
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.
|
| |
| bool | isValid () const noexcept |
| | Verifies if the MethodCallback is valid.
|
| |
| template<typename ClassType > |
| void | setCallback (ClassType &objectRef, MethodPointer< ClassType > methodPtr) noexcept |
| | Sets a new callback.
|
| |
|
template<typename ClassType > |
| ClassType * | getObjectPointer () const noexcept |
| | Returns objectRef.
|
| |
|
template<typename ClassType > |
| auto | getMethodPointer () const noexcept -> MethodPointer< ClassType > |
| | Returns cond method pointer.
|
| |