Public Member Functions | Static Public Member Functions | List of all members
converters::IterableConverter Struct Reference

#include <converter.h>

Public Member Functions

template<typename Container >
IterableConverterfromPython ()
 

Static Public Member Functions

template<typename Container >
static void construct (PyObject *object, boost::python::converter::rvalue_from_python_stage1_data *data)
 Convert iterable PyObject to C++ container type. More...
 
static void * convertible (PyObject *object)
 Check if PyObject is iterable. More...
 

Detailed Description

Definition at line 53 of file converter.h.

Member Function Documentation

◆ construct()

template<typename Container >
static void converters::IterableConverter::construct ( PyObject *  object,
boost::python::converter::rvalue_from_python_stage1_data *  data 
)
inlinestatic

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)

Definition at line 86 of file converter.h.

◆ convertible()

static void* converters::IterableConverter::convertible ( PyObject *  object)
inlinestatic

Check if PyObject is iterable.

Definition at line 66 of file converter.h.

◆ fromPython()

template<typename Container >
IterableConverter& converters::IterableConverter::fromPython ( )
inline
Note
Registers converter from a python interable type to the provided type.

Definition at line 57 of file converter.h.


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


lanelet2_python
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:26:14