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

#include <function_def.hpp>

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

Public Member Functions

 StdInvocationFunc (uint64_t _id, std::function< R(A...)> _function) noexcept
 
 StdInvocationFunc (uint64_t _id) 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::StdInvocationFunc< R, A >

Definition at line 265 of file function_def.hpp.

Constructor & Destructor Documentation

◆ StdInvocationFunc() [1/2]

template<typename R , typename... A>
jau::StdInvocationFunc< R, A >::StdInvocationFunc ( uint64_t  _id,
std::function< R(A...)>  _function 
)
inlinenoexcept

Definition at line 271 of file function_def.hpp.

◆ StdInvocationFunc() [2/2]

template<typename R , typename... A>
jau::StdInvocationFunc< R, A >::StdInvocationFunc ( uint64_t  _id)
inlinenoexcept

Definition at line 274 of file function_def.hpp.

Member Function Documentation

◆ clone()

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

Definition at line 280 of file function_def.hpp.

◆ getType()

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

Definition at line 278 of file function_def.hpp.

◆ invoke()

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

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

Definition at line 282 of file function_def.hpp.

◆ operator!=()

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

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

Definition at line 298 of file function_def.hpp.

◆ operator==()

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

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

Definition at line 286 of file function_def.hpp.

Here is the call graph for this function:

◆ toString()

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

Definition at line 303 of file function_def.hpp.

Here is the call graph for this function:

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