μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Public Attributes | List of all members
variant_caster_visitor Struct Reference

Visit a variant and cast any found type to Python. More...

#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/stl.h>

Collaboration diagram for variant_caster_visitor:
[legend]

Public Types

using result_type = handle
 
using result_type = handle
 

Public Member Functions

template<typename T >
result_type operator() (T &&src) const
 
template<typename T >
result_type operator() (T &&src) const
 

Public Attributes

return_value_policy policy
 
handle parent
 

Detailed Description

Visit a variant and cast any found type to Python.

Definition at line 339 of file stl.h.

Member Typedef Documentation

◆ result_type [1/2]

Definition at line 343 of file stl.h.

◆ result_type [2/2]

Definition at line 364 of file stl.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
result_type variant_caster_visitor::operator() ( T &&  src) const
inline

Definition at line 346 of file stl.h.

References type_caster_generic::cast(), parent, and policy.

◆ operator()() [2/2]

template<typename T >
result_type variant_caster_visitor::operator() ( T &&  src) const
inline

Definition at line 367 of file stl.h.

References type_caster_generic::cast(), parent, and policy.

Member Data Documentation

◆ parent

handle variant_caster_visitor::parent

Definition at line 341 of file stl.h.

Referenced by operator()().

◆ policy

return_value_policy variant_caster_visitor::policy

Definition at line 340 of file stl.h.

Referenced by operator()().


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