MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / ExtendByTask

Class ExtendByTask

src/python/PyImath/PyImathBox.cpp:225–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223
224template <class T>
225struct 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
244template <class T>
245static void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected