|
iceoryx_doc
1.0.1
|
Public Types | |
| template<typename T > | |
| using | MethodPointer = ReturnValue(T::*)(Args...) |
Public Member Functions | |
| MethodCallback (const MethodCallback &rhs)=default | |
| MethodCallback & | operator= (const MethodCallback &rhs)=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. | |
|
inlinenoexcept |
Constructs a MethodCallback from a pointer to a specific object and a pointer to a method of that object.
| [in] | objectRef | object reference |
| [in] | methodPtr | pointer to a method |
|
inlinenoexcept |
Move constructor.
| [in] | rhs | move origin |
|
inlinenoexcept |
Verifies if the MethodCallback is valid.
|
inlineexplicitnoexcept |
Verifies if the MethodCallback is valid.
|
inlinenoexcept |
Calls the method if the MethodCallback is valid, otherwise it will return MethodCallbackError::UNINITIALIZED_CALLBACK.
| [in] | args... | arguments which will be perfectly forwarded to the method |
|
inlinenoexcept |
Move assignment operator.
| [in] | rhs | move origin |
|
inlinenoexcept |
Sets a new callback.
| [in] | objectRef | const reference to the object |
| [in] | methodPtr | pointer to the method |