Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
type_caster_generic Class Reference

#include <type_caster_base.h>

Inheritance diagram for type_caster_generic:
Inheritance graph
[legend]

Public Member Functions

void check_holder_compat ()
 
bool load (handle src, bool convert)
 
template<typename ThisT >
PYBIND11_NOINLINE bool load_impl (handle src, bool convert)
 
void load_value (value_and_holder &&v_h)
 
bool try_direct_conversions (handle src)
 
bool try_implicit_casts (handle src, bool convert)
 
PYBIND11_NOINLINE bool try_load_foreign_module_local (handle src)
 
PYBIND11_NOINLINE type_caster_generic (const std::type_info &type_info)
 
 type_caster_generic (const type_info *typeinfo)
 

Static Public Member Functions

static PYBIND11_NOINLINE handle cast (const void *_src, return_value_policy policy, handle parent, const detail::type_info *tinfo, void *(*copy_constructor)(const void *), void *(*move_constructor)(const void *), const void *existing_holder=nullptr)
 
static PYBIND11_NOINLINE void * local_load (PyObject *src, const type_info *ti)
 
static PYBIND11_NOINLINE std::pair< const void *, const type_info * > src_and_type (const void *src, const std::type_info &cast_type, const std::type_info *rtti_type=nullptr)
 

Public Attributes

const std::type_info * cpptype = nullptr
 
const type_infotypeinfo = nullptr
 
void * value = nullptr
 

Detailed Description

Definition at line 531 of file type_caster_base.h.

Constructor & Destructor Documentation

◆ type_caster_generic() [1/2]

PYBIND11_NOINLINE type_caster_generic::type_caster_generic ( const std::type_info &  type_info)
inlineexplicit

Definition at line 533 of file type_caster_base.h.

◆ type_caster_generic() [2/2]

type_caster_generic::type_caster_generic ( const type_info typeinfo)
inlineexplicit

Definition at line 536 of file type_caster_base.h.

Member Function Documentation

◆ cast()

static PYBIND11_NOINLINE handle type_caster_generic::cast ( const void *  _src,
return_value_policy  policy,
handle  parent,
const detail::type_info *  tinfo,
void *(*)(const void *)  copy_constructor,
void *(*)(const void *)  move_constructor,
const void *  existing_holder = nullptr 
)
inlinestatic

Definition at line 541 of file type_caster_base.h.

◆ check_holder_compat()

void type_caster_generic::check_holder_compat ( )
inline

Definition at line 673 of file type_caster_base.h.

◆ load()

bool type_caster_generic::load ( handle  src,
bool  convert 
)
inline

Definition at line 539 of file type_caster_base.h.

◆ load_impl()

template<typename ThisT >
PYBIND11_NOINLINE bool type_caster_generic::load_impl ( handle  src,
bool  convert 
)
inline

Definition at line 711 of file type_caster_base.h.

◆ load_value()

void type_caster_generic::load_value ( value_and_holder &&  v_h)
inline

Definition at line 634 of file type_caster_base.h.

◆ local_load()

static PYBIND11_NOINLINE void* type_caster_generic::local_load ( PyObject *  src,
const type_info ti 
)
inlinestatic

Definition at line 675 of file type_caster_base.h.

◆ src_and_type()

static PYBIND11_NOINLINE std::pair<const void *, const type_info *> type_caster_generic::src_and_type ( const void *  src,
const std::type_info &  cast_type,
const std::type_info *  rtti_type = nullptr 
)
inlinestatic

Definition at line 811 of file type_caster_base.h.

◆ try_direct_conversions()

bool type_caster_generic::try_direct_conversions ( handle  src)
inline

Definition at line 665 of file type_caster_base.h.

◆ try_implicit_casts()

bool type_caster_generic::try_implicit_casts ( handle  src,
bool  convert 
)
inline

Definition at line 655 of file type_caster_base.h.

◆ try_load_foreign_module_local()

PYBIND11_NOINLINE bool type_caster_generic::try_load_foreign_module_local ( handle  src)
inline

Try to load with foreign typeinfo, if available. Used when there is no native typeinfo, or when the native one wasn't able to produce a value.

Definition at line 685 of file type_caster_base.h.

Member Data Documentation

◆ cpptype

const std::type_info* type_caster_generic::cpptype = nullptr

Definition at line 827 of file type_caster_base.h.

◆ typeinfo

const type_info* type_caster_generic::typeinfo = nullptr

Definition at line 826 of file type_caster_base.h.

◆ value

void* type_caster_generic::value = nullptr

Definition at line 828 of file type_caster_base.h.


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


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:50