CallDialer for single-parameter stand-alone functions. More...
#include <AsyncFunCalls.h>
Public Types | |
using | Handler = void(Argument1) |
a stand-alone function that receives the parameter given to us More... | |
Public Member Functions | |
UnaryFunDialer (Handler *const aHandler, Argument1 anArg1) | |
~UnaryFunDialer () override=default | |
bool | canDial (AsyncCall &) |
void | dial (AsyncCall &) |
void | print (std::ostream &os) const final |
Private Attributes | |
Handler * | handler |
the function to call More... | |
Argument1 | arg1 |
actual call parameter More... | |
Detailed Description
class UnaryFunDialer< Argument1 >
Definition at line 35 of file AsyncFunCalls.h.
Member Typedef Documentation
◆ Handler
using UnaryFunDialer< Argument1 >::Handler = void (Argument1) |
Definition at line 39 of file AsyncFunCalls.h.
Constructor & Destructor Documentation
◆ UnaryFunDialer()
|
inline |
Definition at line 41 of file AsyncFunCalls.h.
◆ ~UnaryFunDialer()
|
overridedefault |
Member Function Documentation
◆ canDial()
|
inline |
Definition at line 48 of file AsyncFunCalls.h.
References UnaryFunDialer< Argument1 >::handler.
◆ dial()
|
inline |
Definition at line 49 of file AsyncFunCalls.h.
References UnaryFunDialer< Argument1 >::arg1, and UnaryFunDialer< Argument1 >::handler.
◆ print()
|
inlinefinalvirtual |
Implements CallDialer.
Definition at line 50 of file AsyncFunCalls.h.
References UnaryFunDialer< Argument1 >::arg1.
Member Data Documentation
◆ arg1
|
private |
Definition at line 54 of file AsyncFunCalls.h.
Referenced by UnaryFunDialer< Argument1 >::dial(), and UnaryFunDialer< Argument1 >::print().
◆ handler
|
private |
Definition at line 53 of file AsyncFunCalls.h.
Referenced by UnaryFunDialer< Argument1 >::canDial(), and UnaryFunDialer< Argument1 >::dial().
The documentation for this class was generated from the following file:
- src/base/AsyncFunCalls.h