Expose an std::vector from a type given as template argument. More...
#include <std-vector.hpp>
Public Types | |
typedef StdContainerFromPythonList< vector_type > | FromPythonListConverter |
typedef std::vector< T, Allocator > | vector_type |
Public Types inherited from pinocchio::python::StdContainerFromPythonList< std::vector< T, Allocator > > | |
typedef std::vector< T, Allocator >::value_type | T |
Public Member Functions | |
static::boost::python::class_< vector_type > | expose (const std::string &class_name, const std::string &doc_string="") |
Additional Inherited Members | |
Static Public Member Functions inherited from pinocchio::python::StdContainerFromPythonList< std::vector< T, Allocator > > | |
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 (std::vector< T, Allocator > &self) |
Expose an std::vector from a type given as template argument.
T | Type to expose as std::vector<T>. |
Allocator | Type for the Allocator in std::vector<T,Allocator>. |
NoProxy | When set to false, the elements will be copied when returned to Python. |
EnableFromPythonListConverter | Enables the conversion from a Python list to a std::vector<T,Allocator> |
Definition at line 170 of file std-vector.hpp.
typedef StdContainerFromPythonList<vector_type> pinocchio::python::StdVectorPythonVisitor< T, Allocator, NoProxy, EnableFromPythonListConverter >::FromPythonListConverter |
Definition at line 175 of file std-vector.hpp.
typedef std::vector<T,Allocator> pinocchio::python::StdVectorPythonVisitor< T, Allocator, NoProxy, EnableFromPythonListConverter >::vector_type |
Definition at line 174 of file std-vector.hpp.
|
inline |
Definition at line 177 of file std-vector.hpp.