Template Struct StdVectorPythonVisitor

Inheritance Relationships

Base Types

  • public boost::python::vector_indexing_suite< std::vector< T, std::allocator< T > >, false >

  • public pinocchio::python::StdContainerFromPythonList< std::vector< T, std::allocator< T > > > (Template Struct StdContainerFromPythonList)

Struct Documentation

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

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

Template Parameters:
  • 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>

Public Types

typedef std::vector<T, Allocator> vector_type
typedef StdContainerFromPythonList<vector_type> FromPythonListConverter

Public Functions

inline ::boost::python::class_<vector_type> expose(const std::string &class_name, const std::string &doc_string = "")