| 95 | } |
| 96 | |
| 97 | std::shared_ptr<std::map<std::string,point>> map_from_object(py::dict obj) |
| 98 | { |
| 99 | auto ret = std::make_shared<std::map<std::string,point>>(); |
| 100 | for (const auto& v : obj) |
| 101 | { |
| 102 | (*ret)[v.first.cast<std::string>()] = v.second.cast<point>(); |
| 103 | } |
| 104 | return ret; |
| 105 | } |
| 106 | |
| 107 | // ---------------------------------------------------------------------------------------- |
| 108 |
nothing calls this directly
no outgoing calls
no test coverage detected