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

#include <cast.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 487 of file cast.h.

Constructor & Destructor Documentation

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

Definition at line 489 of file cast.h.

type_caster_generic::type_caster_generic ( const type_info typeinfo)
inline

Definition at line 492 of file cast.h.

Member Function Documentation

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 499 of file cast.h.

void type_caster_generic::check_holder_compat ( )
inline

Definition at line 626 of file cast.h.

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

Definition at line 495 of file cast.h.

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

Definition at line 660 of file cast.h.

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

Definition at line 590 of file cast.h.

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

Definition at line 628 of file cast.h.

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 744 of file cast.h.

bool type_caster_generic::try_direct_conversions ( handle  src)
inline

Definition at line 619 of file cast.h.

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

Definition at line 609 of file cast.h.

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 637 of file cast.h.

Member Data Documentation

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

Definition at line 758 of file cast.h.

const type_info* type_caster_generic::typeinfo = nullptr

Definition at line 757 of file cast.h.

void* type_caster_generic::value = nullptr

Definition at line 759 of file cast.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:54