8#ifndef PYDEFINITIONS_H_INCLUDED
9#define PYDEFINITIONS_H_INCLUDED
11#include "boost/python.hpp"
19 boost::python::to_python_converter<std::vector<T, std::allocator<T>>, VecToList<T>>();
20 iterable_converter().from_python<std::vector<T>>();
26 boost::python::to_python_converter<std::set<T>, SetToList<T>>();
27 iterable_converter().from_python<std::set<T>>();
33 py_pair<Core::FMTMask, T>();
34 py_pair<Core::FMTMask const, T>();
35 boost::python::class_<Core::FMTList<T>>(
"FMTlist",
"@DocString(FMTList)")
38 "@DocString(FMTList::update)")
41 "@DocString(FMTYieldHandler::APIpush_back)");
49 boost::python::class_<Spatial::FMTLayer<T>>(
"FMTlayer",
"@DocString(FMTLayer)")
51 "@DocString(FMTLayer::GetXSize)")
53 "@DocString(FMTLayer::GetYSize)")
55 "@DocString(FMTLayer::getgeotransform)")
57 "@DocString(FMTLayer::getprojection)")
59 "@DocString(FMTLayer::getmapping)")
61 "@DocString(FMTLayer::area)")
63 "@DocString(FMTLayer::getcellsize)")
65 "@DocString(FMTLayer::size)")
68 .def(
"__getitem__",&
Spatial::FMTLayer<T>::at,boost::python::return_internal_reference<>(),
"@DocString(FMTLayer::at)");
69 boost::python::to_python_converter<std::map<Spatial::FMTCoordinate,T>,MapToDict<Spatial::FMTCoordinate,T>>();
72template<
class k,
class v>
75 boost::python::to_python_converter<std::map<k,v>,MapToDict<k,v>>();
108template<
typename T1,
typename T2>
110 boost::python::to_python_converter<std::pair<T1, T2>, PairToPythonConverter<T1, T2>>();
111 PythonToPairConverter<T1, T2>();
Definition: FMTAreaParser.h:32
Definition: FMTParser.h:54
Definition: PYdefinitions.h:14
void definePySet()
Definition: PYdefinitions.h:24
void definePyPair()
Definition: PYdefinitions.h:109
void definePyDict()
Definition: PYdefinitions.h:73
void definePyList()
Definition: PYdefinitions.h:17
void define_FMTlist()
Definition: PYdefinitions.h:31
void define_FMTlayer()
Definition: PYdefinitions.h:46