jaulib v1.3.6
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
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 <functional3.hpp>

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

Public Member Functions

 capval_target_t (const I &_data, R(*_function)(I &, A...)) noexcept
 Utilizes copy-ctor from 'const I& _data'.
 
 capval_target_t (I &&_data, R(*_function)(I &, A...)) noexcept
 Utilizes move-ctor from moved 'I&& _data'.
 
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 (const target_t &o) noexcept=default
 
 target_t (target_t &&o) noexcept=default
 
 target_t (target_t &&o) noexcept=default
 
virtual ~target_t () noexcept
 
virtual ~target_t () noexcept
 
target_toperator= (const target_t &o) noexcept=default
 
target_toperator= (const target_t &o) noexcept=default
 
target_toperator= (target_t &&o) noexcept=default
 
target_toperator= (target_t &&o) noexcept=default
 
constexpr target_type type () const noexcept
 Return the func::target_type of this invocation function wrapper.
 
constexpr target_type type () const noexcept
 Return the func::target_type of this invocation function wrapper.
 

Additional Inherited Members

- Protected Member Functions inherited from jau::func::target_t< R, A... >
 target_t (target_type ttype_) noexcept
 
 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 254 of file functional3.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(* _function )(I &, A...) )
inlinenoexcept

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

Definition at line 261 of file functional3.hpp.

Here is the caller graph for this function:

◆ 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(* _function )(I &, A...) )
inlinenoexcept

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

Definition at line 266 of file functional3.hpp.

Member Function Documentation

◆ 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 270 of file functional3.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 274 of file functional3.hpp.


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