CallDialer for single-parameter callback functions. More...
#include <AsyncCallbacks.h>
Public Types | |
using | Handler = void(Argument1 &) |
using | Answer = Argument1 |
Public Member Functions | |
UnaryFunCallbackDialer (Handler *const aHandler) | |
~UnaryFunCallbackDialer () override=default | |
bool | canDial (AsyncCall &) |
void | dial (AsyncCall &) |
void | print (std::ostream &os) const final |
Argument1 & | answer () final |
callback results setter More... | |
Private Attributes | |
Handler * | handler |
the function to call More... | |
Argument1 | arg1 |
actual call parameter More... | |
Detailed Description
class UnaryFunCallbackDialer< Argument1 >
Definition at line 79 of file AsyncCallbacks.h.
Member Typedef Documentation
◆ Answer
|
inherited |
Definition at line 21 of file AsyncCallbacks.h.
◆ Handler
using UnaryFunCallbackDialer< Argument1 >::Handler = void (Argument1 &) |
Definition at line 85 of file AsyncCallbacks.h.
Constructor & Destructor Documentation
◆ UnaryFunCallbackDialer()
|
inlineexplicit |
Definition at line 87 of file AsyncCallbacks.h.
◆ ~UnaryFunCallbackDialer()
|
overridedefault |
Member Function Documentation
◆ answer()
|
inlinefinalvirtual |
Implements WithAnswer< Argument1 >.
Definition at line 96 of file AsyncCallbacks.h.
References UnaryFunCallbackDialer< Argument1 >::arg1.
◆ canDial()
|
inline |
Definition at line 91 of file AsyncCallbacks.h.
References UnaryFunCallbackDialer< Argument1 >::handler.
◆ dial()
|
inline |
Definition at line 92 of file AsyncCallbacks.h.
References UnaryFunCallbackDialer< Argument1 >::arg1, and UnaryFunCallbackDialer< Argument1 >::handler.
◆ print()
|
inlinefinalvirtual |
Implements CallDialer.
Definition at line 93 of file AsyncCallbacks.h.
References UnaryFunCallbackDialer< Argument1 >::arg1.
Member Data Documentation
◆ arg1
|
private |
Definition at line 100 of file AsyncCallbacks.h.
Referenced by UnaryFunCallbackDialer< Argument1 >::answer(), UnaryFunCallbackDialer< Argument1 >::dial(), and UnaryFunCallbackDialer< Argument1 >::print().
◆ handler
|
private |
Definition at line 99 of file AsyncCallbacks.h.
Referenced by UnaryFunCallbackDialer< Argument1 >::canDial(), and UnaryFunCallbackDialer< Argument1 >::dial().
The documentation for this class was generated from the following file:
- src/base/AsyncCallbacks.h