eigenpy 3.12.0
Bindings between Numpy and Eigen using Boost.Python
Loading...
Searching...
No Matches
eigenpy::StdContainerFromPythonList< vector_type, NoProxy > Struct Template Reference

Register the conversion from a Python list to a std::vector. More...

#include <eigenpy/std-vector.hpp>

Public Types

typedef vector_type::value_type T
typedef details::container_traits< vector_type >::Allocator Allocator

Static Public Member Functions

static void * convertible (PyObject *obj_ptr)
 Check if obj_ptr can be converted.
static void construct (PyObject *obj_ptr, boost::python::converter::rvalue_from_python_stage1_data *memory)
 Allocate the std::vector and fill it with the element contained in the list.
static void register_converter ()
::boost::python::list tolist (vector_type &self, const bool deep_copy=false)

Detailed Description

template<typename vector_type, bool NoProxy>
struct eigenpy::StdContainerFromPythonList< vector_type, NoProxy >

Register the conversion from a Python list to a std::vector.

Template Parameters
vector_typeA std container (e.g. std::vector or std::list)

Definition at line 261 of file std-vector.hpp.

Member Typedef Documentation

◆ Allocator

template<typename vector_type, bool NoProxy>
typedef details::container_traits<vector_type>::Allocator eigenpy::StdContainerFromPythonList< vector_type, NoProxy >::Allocator

Definition at line 263 of file std-vector.hpp.

◆ T

template<typename vector_type, bool NoProxy>
typedef vector_type::value_type eigenpy::StdContainerFromPythonList< vector_type, NoProxy >::T

Definition at line 262 of file std-vector.hpp.

Member Function Documentation

◆ construct()

template<typename vector_type, bool NoProxy>
void eigenpy::StdContainerFromPythonList< vector_type, NoProxy >::construct(PyObject *obj_ptr,
boost::python::converter::rvalue_from_python_stage1_data *memory )
inlinestatic

Allocate the std::vector and fill it with the element contained in the list.

Definition at line 288 of file std-vector.hpp.

◆ convertible()

template<typename vector_type, bool NoProxy>
void * eigenpy::StdContainerFromPythonList< vector_type, NoProxy >::convertible(PyObject *obj_ptr)
inlinestatic

Check if obj_ptr can be converted.

Definition at line 266 of file std-vector.hpp.

◆ register_converter()

template<typename vector_type, bool NoProxy>
void eigenpy::StdContainerFromPythonList< vector_type, NoProxy >::register_converter()
inlinestatic

Definition at line 310 of file std-vector.hpp.

◆ tolist()

template<typename vector_type, bool NoProxy>
::boost::python::list eigenpy::StdContainerFromPythonList< vector_type, NoProxy >::tolist(vector_type &self,
const booldeep_copy = false )
inlinestatic

Definition at line 315 of file std-vector.hpp.


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