5 #include "HitContainer.h"
7 // assume each hit vector contains at least one hit
9 template<class HitType>
12 HitWrapper(int nThreads, HitContainer<HitType> **hitvs) {
13 this->nThreads = nThreads;
18 HitType* getNextHit() {
21 if (i >= nThreads) return NULL;
22 res = &(hitvs[i]->getHitAt(j));
24 if (j >= hitvs[i]->getNHits()) { ++i; j = 0; }
32 HitContainer<HitType> **hitvs;
35 #endif /* HITWRAPPER_H_ */