| 223 | |
| 224 | template <class T> |
| 225 | struct ExtendByTask : public Task |
| 226 | { |
| 227 | std::vector<IMATH_NAMESPACE::Box<T> >& boxes; |
| 228 | const PyImath::FixedArray<T>& points; |
| 229 | |
| 230 | ExtendByTask(std::vector<IMATH_NAMESPACE::Box<T> >& b, const PyImath::FixedArray<T> &p) |
| 231 | : boxes(b), points(p) {} |
| 232 | |
| 233 | void execute(size_t start, size_t end, int tid) |
| 234 | { |
| 235 | for(size_t p = start; p < end; ++p) |
| 236 | boxes[tid].extendBy(points[p]); |
| 237 | } |
| 238 | void execute(size_t start, size_t end) |
| 239 | { |
| 240 | throw std::invalid_argument ("Box::ExtendBy execute requires a thread id"); |
| 241 | } |
| 242 | }; |
| 243 | |
| 244 | template <class T> |
| 245 | static void |
nothing calls this directly
no outgoing calls
no test coverage detected