UnaryFunDialer< Argument1 > Class Template Reference

CallDialer for single-parameter stand-alone functions. More...

#include <AsyncFunCalls.h>

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

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

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

Detailed Description

template<typename Argument1>
class UnaryFunDialer< Argument1 >

Definition at line 35 of file AsyncFunCalls.h.

Member Typedef Documentation

◆ Handler

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

Definition at line 39 of file AsyncFunCalls.h.

Constructor & Destructor Documentation

◆ UnaryFunDialer()

template<typename Argument1 >
UnaryFunDialer< Argument1 >::UnaryFunDialer ( Handler *const  aHandler,
Argument1  anArg1 
)
inline

Definition at line 41 of file AsyncFunCalls.h.

◆ ~UnaryFunDialer()

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

Member Function Documentation

◆ canDial()

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

Definition at line 48 of file AsyncFunCalls.h.

References UnaryFunDialer< Argument1 >::handler.

◆ dial()

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

◆ print()

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

Implements CallDialer.

Definition at line 50 of file AsyncFunCalls.h.

References UnaryFunDialer< Argument1 >::arg1.

Member Data Documentation

◆ arg1

template<typename Argument1 >
Argument1 UnaryFunDialer< Argument1 >::arg1
private

◆ handler

template<typename Argument1 >
Handler* UnaryFunDialer< Argument1 >::handler
private

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors