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>

Inheritance diagram for eigenpy::StdContainerFromPythonList< vector_type, NoProxy >:
Inheritance graph
[legend]

Public Types

typedef vector_type::allocator_type 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)
 

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 27 of file std-vector.hpp.

Member Typedef Documentation

◆ Allocator

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

Definition at line 245 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 244 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 270 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 248 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 292 of file std-vector.hpp.

◆ tolist()

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

Definition at line 297 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 Fri Jun 2 2023 02:10:27