Template Struct StdVectorPythonVisitor

Struct Documentation

template<class vector_type, bool NoProxy = false, bool EnableFromPythonListConverter = true, bool pickable = true>
struct StdVectorPythonVisitor

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

Template Parameters:
  • vector_type – std::vector type to expose

  • 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 vector_type::value_type value_type
typedef StdContainerFromPythonList<vector_type, NoProxy> FromPythonListConverter

Public Static Functions

static inline void expose(const std::string &class_name, const std::string &doc_string = "")
template<typename DerivedVisitor>
static inline void expose(const std::string &class_name, const bp::def_visitor<DerivedVisitor> &visitor)
template<typename DerivedVisitor>
static inline void expose(const std::string &class_name, const std::string &doc_string, const bp::def_visitor<DerivedVisitor> &visitor)