13#include <boost/python/dict.hpp>
14#include <boost/python/object.hpp>
18namespace PythonInterface {
24 using MapType = std::map<KeyType, ValueType>;
30 boost::python::dict dictionary;
31 for (
const auto &pair : this->m_map) {
32 dictionary[object(pair.first)] = object(pair.second);
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Helper class which provides the Collimation Length for SANS instruments.
MapToPyDictionary(const MapType &map)
boost::python::dict operator()()
Produces a python dictionary.
std::map< KeyType, ValueType > MapType