| 79 | |
| 80 | template <class T> |
| 81 | static Box<T> * box2TupleConstructor2(const tuple &t0, const tuple &t1) |
| 82 | { |
| 83 | if(t0.attr("__len__")() == 2 && t1.attr("__len__")() == 2) |
| 84 | { |
| 85 | T point0, point1; |
| 86 | point0.x = extract<typename T::BaseType>(t0[0]); point0.y = extract<typename T::BaseType>(t0[1]); |
| 87 | point1.x = extract<typename T::BaseType>(t1[0]); point1.y = extract<typename T::BaseType>(t1[1]); |
| 88 | |
| 89 | return new Box<T>(point0, point1); |
| 90 | } |
| 91 | else |
| 92 | throw std::invalid_argument ("Invalid input to Box tuple constructor"); |
| 93 | } |
| 94 | |
| 95 | template <class T, class S> |
| 96 | static Box<T> *boxConstructor(const Box<S> &box) |
nothing calls this directly
no outgoing calls
no test coverage detected