| 141 | |
| 142 | template <class T> |
| 143 | static Box<T> * box3TupleConstructor2(const tuple &t0, const tuple &t1) |
| 144 | { |
| 145 | if(t0.attr("__len__")() == 3 && t1.attr("__len__")() == 3) |
| 146 | { |
| 147 | T point0, point1; |
| 148 | point0.x = extract<typename T::BaseType>(t0[0]); |
| 149 | point0.y = extract<typename T::BaseType>(t0[1]); |
| 150 | point0.z = extract<typename T::BaseType>(t0[2]); |
| 151 | |
| 152 | point1.x = extract<typename T::BaseType>(t1[0]); |
| 153 | point1.y = extract<typename T::BaseType>(t1[1]); |
| 154 | point1.z = extract<typename T::BaseType>(t1[2]); |
| 155 | |
| 156 | return new Box<T>(point0, point1); |
| 157 | } |
| 158 | else |
| 159 | throw std::invalid_argument ("Invalid input to Box tuple constructor"); |
| 160 | } |
| 161 | |
| 162 | template <class T> |
| 163 | static std::string Box_repr(const Box<T> &box) |
nothing calls this directly
no outgoing calls
no test coverage detected