Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
func::member_target_t implementation for class member functions, identifiable as func::target_type::member via jau::function<R(A...)>::type(). More...
#include <functional.hpp>
Public Types | |
typedef delegate_t< R, A... > | delegate_type |
Public Member Functions | |
member_target_t (C1 *_base, R(C0::*_member)(A...), std::enable_if_t< std::is_base_of_v< C0, C1 >, bool >=true) noexcept | |
Construct a target_t<R, A...> instance from given this base-pointer and member-function. More... | |
R | 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_t & | operator= (const target_t &o) noexcept=default |
target_t & | operator= (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 (C1 *base, R(C0::*method)(A...), std::enable_if_t< std::is_base_of_v< C0, C1 >, bool >=true) noexcept |
Construct a delegate_t<R, A...> instance from given this base-pointer and member-function. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from jau::func::target_t< R, A... > | |
target_t (target_type ttype_) noexcept | |
func::member_target_t implementation for class member functions, identifiable as func::target_type::member via jau::function<R(A...)>::type().
R | function return type |
C0 | class type holding the member-function |
C1 | class derived from C0 or C0 of this base-pointer used to invoke the member-function |
A | function arguments |
Definition at line 783 of file functional.hpp.
typedef delegate_t<R, A...> jau::func::member_target_t< R, C0, C1, A >::delegate_type |
Definition at line 785 of file functional.hpp.
|
inlinenoexcept |
Construct a target_t<R, A...> instance from given this base-pointer and member-function.
This factory function is only enabled if C0 is base of C1.
_base | this base-pointer of class C1 derived from C0 or C0 used to invoke the member-function |
_member | member-function of class C0 |
Definition at line 378 of file functional2.hpp.
|
inlinestaticnoexcept |
Construct a delegate_t<R, A...> instance from given this base-pointer and member-function.
This factory function is only enabled if C0 is base of C1.
base | this base-pointer of class C1 derived from C0 or C0 used to invoke the member-function |
method | member-function of class C0 |
Definition at line 865 of file functional.hpp.
|
inlineoverridevirtual |
Implements jau::func::target_t< R, A... >.
Definition at line 383 of file functional2.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::func::target_t< R, A... >.
Definition at line 387 of file functional2.hpp.