Calls a function without arguments. See also: NullaryMemFunT. More...

#include <AsyncFunCalls.h>

Inheritance diagram for NullaryFunDialer:
Collaboration diagram for NullaryFunDialer:

Public Types

using Handler = void()
 

Public Member Functions

 NullaryFunDialer (Handler *const aHandler)
 
bool canDial (AsyncCall &)
 
void dial (AsyncCall &)
 
void print (std::ostream &os) const override
 

Private Attributes

Handlerhandler
 the function to call (or nil) More...
 

Detailed Description

Definition at line 17 of file AsyncFunCalls.h.

Member Typedef Documentation

◆ Handler

using NullaryFunDialer::Handler = void ()

Definition at line 20 of file AsyncFunCalls.h.

Constructor & Destructor Documentation

◆ NullaryFunDialer()

NullaryFunDialer::NullaryFunDialer ( Handler *const  aHandler)
inlineexplicit

Definition at line 22 of file AsyncFunCalls.h.

Member Function Documentation

◆ canDial()

bool NullaryFunDialer::canDial ( AsyncCall )
inline

Definition at line 25 of file AsyncFunCalls.h.

References handler.

◆ dial()

void NullaryFunDialer::dial ( AsyncCall )
inline

Definition at line 26 of file AsyncFunCalls.h.

References handler.

◆ print()

void NullaryFunDialer::print ( std::ostream &  os) const
inlineoverridevirtual

Implements CallDialer.

Definition at line 27 of file AsyncFunCalls.h.

Member Data Documentation

◆ handler

Handler* NullaryFunDialer::handler
private

Definition at line 30 of file AsyncFunCalls.h.

Referenced by canDial(), and dial().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors