Template Struct VariantRefToObject

Inheritance Relationships

Base Type

Struct Documentation

template<typename Variant>
struct VariantRefToObject : public eigenpy::details::VariantVisitorType<PyObject*, Variant>

Convert {boost,std}::variant<class…> alternative reference to a Python object. This converter return the alternative reference. The code that create the reference holder is taken from

See also

bp::to_python_indirect.

Public Types

typedef VariantVisitorType<PyObject*, Variant> Base
typedef Base::result_type result_type
typedef Base::variant_type variant_type

Public Functions

template<typename T, typename std::enable_if<is_python_primitive_type<T>::value, bool>::type = true>
inline result_type operator()(T t) const
template<typename T, typename std::enable_if<!is_python_primitive_type<T>::value, bool>::type = true>
inline result_type operator()(T &t) const

Public Static Functions

static inline result_type convert(const variant_type &v)