Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | List of all members
jau::PlainInvocationFunc< R, A > Class Template Reference

#include <function_def.hpp>

Inheritance diagram for jau::PlainInvocationFunc< R, A >:
Collaboration diagram for jau::PlainInvocationFunc< R, A >:

Public Member Functions

 PlainInvocationFunc (R(*_function)(A...)) noexcept
 
int getType () const noexcept override
 
InvocationFunc< R, A... > * clone () const noexcept override
 
invoke (A... args) override
 
bool operator== (const InvocationFunc< R, A... > &rhs) const noexcept override
 
bool operator!= (const InvocationFunc< R, A... > &rhs) const noexcept override
 
std::string toString () const override
 
- Public Member Functions inherited from jau::InvocationFunc< R, A... >
 InvocationFunc (const InvocationFunc &o) noexcept=default
 
 InvocationFunc (InvocationFunc &&o) noexcept=default
 
virtual ~InvocationFunc () noexcept
 
InvocationFuncoperator= (const InvocationFunc &o) noexcept=default
 
InvocationFuncoperator= (InvocationFunc &&o) noexcept=default
 
virtual int getType () const noexcept=0
 Poor man's RTTI. More...
 
virtual InvocationFunc< R, A... > * clone () const noexcept=0
 
virtual std::string toString () const=0
 

Additional Inherited Members

- Protected Member Functions inherited from jau::InvocationFunc< R, A... >
 InvocationFunc () noexcept
 

Detailed Description

template<typename R, typename... A>
class jau::PlainInvocationFunc< R, A >

Definition at line 175 of file function_def.hpp.

Constructor & Destructor Documentation

◆ PlainInvocationFunc()

template<typename R , typename... A>
jau::PlainInvocationFunc< R, A >::PlainInvocationFunc ( R(*)(A...)  _function)
inlinenoexcept

Definition at line 180 of file function_def.hpp.

Member Function Documentation

◆ clone()

template<typename R , typename... A>
InvocationFunc<R, A...>* jau::PlainInvocationFunc< R, A >::clone ( ) const
inlineoverridenoexcept

Definition at line 186 of file function_def.hpp.

◆ getType()

template<typename R , typename... A>
int jau::PlainInvocationFunc< R, A >::getType ( ) const
inlineoverridenoexcept

Definition at line 184 of file function_def.hpp.

◆ invoke()

template<typename R , typename... A>
R jau::PlainInvocationFunc< R, A >::invoke ( A...  args)
inlineoverridevirtual

Implements jau::InvocationFunc< R, A... >.

Definition at line 188 of file function_def.hpp.

◆ operator!=()

template<typename R , typename... A>
bool jau::PlainInvocationFunc< R, A >::operator!= ( const InvocationFunc< R, A... > &  rhs) const
inlineoverridevirtualnoexcept

Implements jau::InvocationFunc< R, A... >.

Definition at line 204 of file function_def.hpp.

◆ operator==()

template<typename R , typename... A>
bool jau::PlainInvocationFunc< R, A >::operator== ( const InvocationFunc< R, A... > &  rhs) const
inlineoverridevirtualnoexcept

Implements jau::InvocationFunc< R, A... >.

Definition at line 192 of file function_def.hpp.

Here is the call graph for this function:

◆ toString()

template<typename R , typename... A>
std::string jau::PlainInvocationFunc< R, A >::toString ( ) const
inlineoverride

Definition at line 209 of file function_def.hpp.

Here is the call graph for this function:

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