예제 #1
0
 BlockedRangeWDPReducer (WDPin &in) :
   wd (in),
   result (in.identity ())
 {}
예제 #2
0
 inline void operator () (tbb::blocked_range<int>& rng) const {
   for (int i = rng.begin (); i != rng.end (); ++i) {
     wd->execute (i);
   }
 }
예제 #3
0
파일: TBBNode.hpp 프로젝트: Kyushick/sight
 void operator()(tbb::blocked_range<int> &rng)
 { 
   for(int i=rng.begin(); i<rng.end(); ++i) {
     wd.result = wd.reduce(wd.result, wd.generate(i));
   }
 }
예제 #4
0
파일: TBBNode.hpp 프로젝트: Kyushick/sight
 inline void join( const BlockedRangeWDPReducer<WDPin> &other ) {
   wd.result = wd.reduce( wd.result, other.wd.result );
 }
예제 #5
0
파일: TBBNode.hpp 프로젝트: Kyushick/sight
 BlockedRangeWDPReducer(BlockedRangeWDPReducer &in, tbb::split) : wd(in.wd)
 {
   wd.result = wd.identity();
 }