UnaryFunCallbackDialer< Argument1 > Class Template Reference

CallDialer for single-parameter callback functions. More...

#include <AsyncCallbacks.h>

Inheritance diagram for UnaryFunCallbackDialer< Argument1 >:
Collaboration diagram for UnaryFunCallbackDialer< Argument1 >:

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
 
Argument1answer () final
 callback results setter More...
 

Private Attributes

Handlerhandler
 the function to call More...
 
Argument1 arg1
 actual call parameter More...
 

Detailed Description

template<typename Argument1>
class UnaryFunCallbackDialer< Argument1 >

Definition at line 79 of file AsyncCallbacks.h.

Member Typedef Documentation

◆ Answer

using WithAnswer< Argument1 >::Answer = Argument1
inherited

Definition at line 21 of file AsyncCallbacks.h.

◆ Handler

template<typename Argument1 >
using UnaryFunCallbackDialer< Argument1 >::Handler = void (Argument1 &)

Definition at line 85 of file AsyncCallbacks.h.

Constructor & Destructor Documentation

◆ UnaryFunCallbackDialer()

template<typename Argument1 >
UnaryFunCallbackDialer< Argument1 >::UnaryFunCallbackDialer ( Handler *const  aHandler)
inlineexplicit

Definition at line 87 of file AsyncCallbacks.h.

◆ ~UnaryFunCallbackDialer()

template<typename Argument1 >
UnaryFunCallbackDialer< Argument1 >::~UnaryFunCallbackDialer ( )
overridedefault

Member Function Documentation

◆ answer()

template<typename Argument1 >
Argument1 & UnaryFunCallbackDialer< Argument1 >::answer ( )
inlinefinalvirtual

Implements WithAnswer< Argument1 >.

Definition at line 96 of file AsyncCallbacks.h.

References UnaryFunCallbackDialer< Argument1 >::arg1.

◆ canDial()

template<typename Argument1 >
bool UnaryFunCallbackDialer< Argument1 >::canDial ( AsyncCall )
inline

Definition at line 91 of file AsyncCallbacks.h.

References UnaryFunCallbackDialer< Argument1 >::handler.

◆ dial()

template<typename Argument1 >
void UnaryFunCallbackDialer< Argument1 >::dial ( AsyncCall )
inline

◆ print()

template<typename Argument1 >
void UnaryFunCallbackDialer< Argument1 >::print ( std::ostream &  os) const
inlinefinalvirtual

Implements CallDialer.

Definition at line 93 of file AsyncCallbacks.h.

References UnaryFunCallbackDialer< Argument1 >::arg1.

Member Data Documentation

◆ arg1

◆ handler


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors