Public Types | Public Member Functions | List of all members
pinocchio::python::StdVectorPythonVisitor< T, Allocator, NoProxy, EnableFromPythonListConverter > Struct Template Reference

Expose an std::vector from a type given as template argument. More...

#include <std-vector.hpp>

Inheritance diagram for pinocchio::python::StdVectorPythonVisitor< T, Allocator, NoProxy, EnableFromPythonListConverter >:
Inheritance graph
[legend]

Public Types

typedef StdContainerFromPythonList< vector_typeFromPythonListConverter
 
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_typeexpose (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)
 

Detailed Description

template<class T, class Allocator = std::allocator<T>, bool NoProxy = false, bool EnableFromPythonListConverter = true>
struct pinocchio::python::StdVectorPythonVisitor< T, Allocator, NoProxy, EnableFromPythonListConverter >

Expose an std::vector from a type given as template argument.

Template Parameters
TType to expose as std::vector<T>.
AllocatorType for the Allocator in std::vector<T,Allocator>.
NoProxyWhen set to false, the elements will be copied when returned to Python.
EnableFromPythonListConverterEnables the conversion from a Python list to a std::vector<T,Allocator>
See also
StdAlignedVectorPythonVisitor

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

Member Typedef Documentation

◆ FromPythonListConverter

template<class T , class Allocator = std::allocator<T>, bool NoProxy = false, bool EnableFromPythonListConverter = true>
typedef StdContainerFromPythonList<vector_type> pinocchio::python::StdVectorPythonVisitor< T, Allocator, NoProxy, EnableFromPythonListConverter >::FromPythonListConverter

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

◆ vector_type

template<class T , class Allocator = std::allocator<T>, bool NoProxy = false, bool EnableFromPythonListConverter = true>
typedef std::vector<T,Allocator> pinocchio::python::StdVectorPythonVisitor< T, Allocator, NoProxy, EnableFromPythonListConverter >::vector_type

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

Member Function Documentation

◆ expose()

template<class T , class Allocator = std::allocator<T>, bool NoProxy = false, bool EnableFromPythonListConverter = true>
static ::boost::python::class_<vector_type> pinocchio::python::StdVectorPythonVisitor< T, Allocator, NoProxy, EnableFromPythonListConverter >::expose ( const std::string &  class_name,
const std::string &  doc_string = "" 
)
inline

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


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


pinocchio
Author(s):
autogenerated on Fri Jun 23 2023 02:38:36