| 51 | |
| 52 | template <typename T> |
| 53 | py::list vector_to_python_list ( |
| 54 | const std::vector<T>& vect |
| 55 | ) |
| 56 | /*! |
| 57 | ensures |
| 58 | - converts a std::vector<T> into a python list object. |
| 59 | !*/ |
| 60 | { |
| 61 | py::list obj; |
| 62 | for (unsigned long i = 0; i < vect.size(); ++i) |
| 63 | obj.append(vect[i]); |
| 64 | return obj; |
| 65 | } |
| 66 | |
| 67 | template <typename T> |
| 68 | void extend_vector_with_python_list ( |
no test coverage detected