eigenpy 3.12.0
Bindings between Numpy and Eigen using Boost.Python
Loading...
Searching...
No Matches
eigenpy::dict_to_map< Container > Struct Template Reference

#include <eigenpy/map.hpp>

Inheritance diagram for eigenpy::dict_to_map< Container >:
[legend]

Static Public Member Functions

static void register_converter ()
static void * convertible (PyObject *object)
 Check if conversion is possible.
static void construct (PyObject *object, bp::converter::rvalue_from_python_stage1_data *data)
 Perform the conversion.
static bp::dict todict (Container &self)

Detailed Description

template<typename Container>
struct eigenpy::dict_to_map< Container >

Conversion from dict to map solution proposed in https://stackoverflow.com/questions/6116345/boostpython-possible-to-automatically-convert-from-dict-stdmap This template encapsulates the conversion machinery.

Definition at line 96 of file map.hpp.

Member Function Documentation

◆ construct()

template<typename Container>
void eigenpy::dict_to_map< Container >::construct(PyObject *object,
bp::converter::rvalue_from_python_stage1_data *data )
inlinestatic

Perform the conversion.

Definition at line 111 of file map.hpp.

◆ convertible()

template<typename Container>
void * eigenpy::dict_to_map< Container >::convertible(PyObject *object)
inlinestatic

Check if conversion is possible.

Definition at line 104 of file map.hpp.

◆ register_converter()

template<typename Container>
void eigenpy::dict_to_map< Container >::register_converter()
inlinestatic

Definition at line 97 of file map.hpp.

◆ todict()

template<typename Container>
bp::dict eigenpy::dict_to_map< Container >::todict(Container &self)
inlinestatic

Definition at line 154 of file map.hpp.


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