Public Types | Public Member Functions | Static Public Member Functions | List of all members
type_caster< std::function< Return(Args...)> > Struct Template Reference

#include <functional.h>

Public Types

using function_type = Return(*)(Args...)
 
using retval_type = conditional_t< std::is_same< Return, void >::value, void_type, Return >
 
using type = std::function< Return(Args...)>
 

Public Member Functions

bool load (handle src, bool convert)
 
 PYBIND11_TYPE_CASTER (type, const_name("Callable[[")+concat(make_caster< Args >::name...)+const_name("], ")+make_caster< retval_type >::name+const_name("]"))
 

Static Public Member Functions

template<typename Func >
static handle cast (Func &&f_, return_value_policy policy, handle)
 

Detailed Description

template<typename Return, typename... Args>
struct type_caster< std::function< Return(Args...)> >

Definition at line 20 of file functional.h.

Member Typedef Documentation

◆ function_type

template<typename Return , typename... Args>
using type_caster< std::function< Return(Args...)> >::function_type = Return (*)(Args...)

Definition at line 23 of file functional.h.

◆ retval_type

template<typename Return , typename... Args>
using type_caster< std::function< Return(Args...)> >::retval_type = conditional_t<std::is_same<Return, void>::value, void_type, Return>

Definition at line 22 of file functional.h.

◆ type

template<typename Return , typename... Args>
using type_caster< std::function< Return(Args...)> >::type = std::function<Return(Args...)>

Definition at line 21 of file functional.h.

Member Function Documentation

◆ cast()

template<typename Return , typename... Args>
template<typename Func >
static handle type_caster< std::function< Return(Args...)> >::cast ( Func &&  f_,
return_value_policy  policy,
handle   
)
inlinestatic

Definition at line 111 of file functional.h.

◆ load()

template<typename Return , typename... Args>
bool type_caster< std::function< Return(Args...)> >::load ( handle  src,
bool  convert 
)
inline

Definition at line 26 of file functional.h.

◆ PYBIND11_TYPE_CASTER()

template<typename Return , typename... Args>
type_caster< std::function< Return(Args...)> >::PYBIND11_TYPE_CASTER ( type  ,
const_name("Callable[[")+concat(make_caster< Args >::name...)+const_name("], ")+make_caster< retval_type >::name+const_name("]")   
)

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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:08