#include <AsyncCallbacks.h>
Public Types | |
typedef void(Destination::* | Method) (Argument1 &) |
using | Answer = Argument1 |
Public Member Functions | |
UnaryCbcCallbackDialer (Method method, Destination *destination) | |
~UnaryCbcCallbackDialer () override=default | |
bool | canDial (AsyncCall &) |
void | dial (AsyncCall &) |
void | print (std::ostream &os) const final |
Argument1 & | answer () final |
callback results setter More... | |
Private Attributes | |
CbcPointer< Destination > | destination_ |
object to deliver the answer to More... | |
Method | method_ |
Destination method to call with the answer. More... | |
Argument1 | arg1_ |
Detailed Description
class UnaryCbcCallbackDialer< Destination, Argument1 >
CallDialer for single-parameter callback methods of cbdata-protected classes that are not AsyncJobs (use UnaryJobCallbackDialer for the latter).
Definition at line 106 of file AsyncCallbacks.h.
Member Typedef Documentation
◆ Answer
|
inherited |
Definition at line 21 of file AsyncCallbacks.h.
◆ Method
typedef void(Destination::* UnaryCbcCallbackDialer< Destination, Argument1 >::Method) (Argument1 &) |
Definition at line 112 of file AsyncCallbacks.h.
Constructor & Destructor Documentation
◆ UnaryCbcCallbackDialer()
|
inline |
Definition at line 114 of file AsyncCallbacks.h.
◆ ~UnaryCbcCallbackDialer()
|
overridedefault |
Member Function Documentation
◆ answer()
|
inlinefinalvirtual |
Implements WithAnswer< Argument1 >.
Definition at line 123 of file AsyncCallbacks.h.
References UnaryCbcCallbackDialer< Destination, Argument1 >::arg1_.
◆ canDial()
|
inline |
Definition at line 118 of file AsyncCallbacks.h.
References UnaryCbcCallbackDialer< Destination, Argument1 >::destination_, and CbcPointer< Cbc >::valid().
◆ dial()
|
inline |
Definition at line 119 of file AsyncCallbacks.h.
References UnaryCbcCallbackDialer< Destination, Argument1 >::arg1_, and UnaryCbcCallbackDialer< Destination, Argument1 >::method_.
◆ print()
|
inlinefinalvirtual |
Implements CallDialer.
Definition at line 120 of file AsyncCallbacks.h.
References UnaryCbcCallbackDialer< Destination, Argument1 >::arg1_.
Member Data Documentation
◆ arg1_
|
private |
Definition at line 128 of file AsyncCallbacks.h.
Referenced by UnaryCbcCallbackDialer< Destination, Argument1 >::answer(), UnaryCbcCallbackDialer< Destination, Argument1 >::dial(), and UnaryCbcCallbackDialer< Destination, Argument1 >::print().
◆ destination_
|
private |
Definition at line 126 of file AsyncCallbacks.h.
Referenced by UnaryCbcCallbackDialer< Destination, Argument1 >::canDial().
◆ method_
|
private |
Definition at line 127 of file AsyncCallbacks.h.
Referenced by UnaryCbcCallbackDialer< Destination, Argument1 >::dial().
The documentation for this class was generated from the following file:
- src/base/AsyncCallbacks.h