Public Types | Static Public Member Functions | List of all members
eigenpy::StdContainerFromPythonList< vector_type, NoProxy > Struct Template Reference

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

#include <std-vector.hpp>

Public Types

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

Static Public Member Functions

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. More...
 
static void * convertible (PyObject *obj_ptr)
 Check if obj_ptr can be converted. More...
 
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 29 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>
static 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>
static 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>
static 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 bool  deep_copy = false 
)
inlinestatic

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


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


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Nov 2 2024 02:14:45