Public Types | Static Public Member Functions | List of all members
pinocchio::python::StdContainerFromPythonList< vector_type > Struct Template Reference

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

#include <std-vector.hpp>

Public Types

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>
struct pinocchio::python::StdContainerFromPythonList< vector_type >

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

Member Typedef Documentation

template<typename vector_type>
typedef vector_type::value_type pinocchio::python::StdContainerFromPythonList< vector_type >::T

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

Member Function Documentation

template<typename vector_type>
static void pinocchio::python::StdContainerFromPythonList< vector_type >::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 119 of file std-vector.hpp.

template<typename vector_type>
static void* pinocchio::python::StdContainerFromPythonList< vector_type >::convertible ( PyObject *  obj_ptr)
inlinestatic

Check if obj_ptr can be converted.

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

template<typename vector_type>
static void pinocchio::python::StdContainerFromPythonList< vector_type >::register_converter ( )
inlinestatic

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

template<typename vector_type>
::boost::python::list pinocchio::python::StdContainerFromPythonList< vector_type >::tolist ( vector_type &  self)
inlinestatic

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


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


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:06