Struct IterableConverter
Defined in File converter.h
Struct Documentation
-
struct IterableConverter
Public Functions
-
template<typename Container>
inline IterableConverter &fromPython() Note
Registers converter from a python interable type to the provided type.
Public Static Functions
-
static inline void *convertible(PyObject *object)
Check if PyObject is iterable.
-
template<typename Container>
static inline void construct(PyObject *object, boost::python::converter::rvalue_from_python_stage1_data *data) Convert iterable PyObject to C++ container type.
Container Concept requirements:
Container::value_type is CopyConstructable.
Container can be constructed and populated with two iterators. I.e. Container(begin, end)
-
template<typename Container>