Template Struct VariantRefToObject
Defined in File variant.hpp
Inheritance Relationships
Base Type
public eigenpy::details::VariantVisitorType< PyObject *, Variant >
(Template Struct VariantVisitorType)
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
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)
-
typedef VariantVisitorType<PyObject*, Variant> Base