Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
jau::func::capval_target_t< R, I, A > Class Template Referencefinal

func::capval_target_t implementation for functions using a copy of a captured value, identifiable as func::target_type::capval via jau::function<R(A...)>::type(). More...

#include <functional.hpp>

Inheritance diagram for jau::func::capval_target_t< R, I, A >:
Collaboration diagram for jau::func::capval_target_t< R, I, A >:

Public Types

typedef delegate_t< R, A... > delegate_type
 

Public Member Functions

 capval_target_t (const I &_data, R(*_function)(I &, A...)) noexcept
 Utilizes copy-ctor from 'const I& _data'. More...
 
 capval_target_t (I &&_data, R(*_function)(I &, A...)) noexcept
 Utilizes move-ctor from moved 'I&& _data'. More...
 
operator() (A... args) override
 
bool operator== (const target_t< R, A... > &rhs) const noexcept override
 
- Public Member Functions inherited from jau::func::target_t< R, A... >
 target_t (const target_t &o) noexcept=default
 
 target_t (target_t &&o) noexcept=default
 
virtual ~target_t () noexcept
 
virtual R operator() (A... args)=0
 
target_toperator= (const target_t &o) noexcept=default
 
target_toperator= (target_t &&o) noexcept=default
 
virtual bool operator== (const target_t< R, A... > &rhs) const noexcept=0
 
constexpr target_type type () const noexcept
 Return the func::target_type of this invocation function wrapper. More...
 

Static Public Member Functions

static delegate_type delegate (const I &data, R(*function)(I &, A...)) noexcept
 
static delegate_type delegate (I &&data, R(*function)(I &, A...)) noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from jau::func::target_t< R, A... >
 target_t (target_type ttype_) noexcept
 

Detailed Description

template<typename R, typename I, typename... A>
class jau::func::capval_target_t< R, I, A >

func::capval_target_t implementation for functions using a copy of a captured value, identifiable as func::target_type::capval via jau::function<R(A...)>::type().

Template Parameters
Rfunction return type
Itypename holding the captured data used by the function
Afunction arguments
See also
Function Overview

Definition at line 1056 of file functional.hpp.

Member Typedef Documentation

◆ delegate_type

template<typename R , typename I , typename... A>
typedef delegate_t<R, A...> jau::func::capval_target_t< R, I, A >::delegate_type

Definition at line 1058 of file functional.hpp.

Constructor & Destructor Documentation

◆ capval_target_t() [1/2]

template<typename R , typename I , typename... A>
jau::func::capval_target_t< R, I, A >::capval_target_t ( const I &  _data,
R(*)(I &, A...)  _function 
)
inlinenoexcept

Utilizes copy-ctor from 'const I& _data'.

Definition at line 484 of file functional2.hpp.

◆ capval_target_t() [2/2]

template<typename R , typename I , typename... A>
jau::func::capval_target_t< R, I, A >::capval_target_t ( I &&  _data,
R(*)(I &, A...)  _function 
)
inlinenoexcept

Utilizes move-ctor from moved 'I&& _data'.

Definition at line 489 of file functional2.hpp.

Member Function Documentation

◆ delegate() [1/2]

template<typename R , typename I , typename... A>
static delegate_type jau::func::capval_target_t< R, I, A >::delegate ( const I &  data,
R(*)(I &, A...)  function 
)
inlinestaticnoexcept

Definition at line 1088 of file functional.hpp.

Here is the caller graph for this function:

◆ delegate() [2/2]

template<typename R , typename I , typename... A>
static delegate_type jau::func::capval_target_t< R, I, A >::delegate ( I &&  data,
R(*)(I &, A...)  function 
)
inlinestaticnoexcept

Definition at line 1092 of file functional.hpp.

◆ operator()()

template<typename R , typename I , typename... A>
R jau::func::capval_target_t< R, I, A >::operator() ( A...  args)
inlineoverridevirtual

Implements jau::func::target_t< R, A... >.

Definition at line 493 of file functional2.hpp.

◆ operator==()

template<typename R , typename I , typename... A>
bool jau::func::capval_target_t< R, I, A >::operator== ( const target_t< R, A... > &  rhs) const
inlineoverridevirtualnoexcept

Implements jau::func::target_t< R, A... >.

Definition at line 497 of file functional2.hpp.


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