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