Compare commits

..

4 Commits

Author SHA1 Message Date
5c85ef13d4 TODO 2021-12-15 18:28:58 +01:00
fab039f534 comments corrected 2021-12-15 18:28:15 +01:00
3e35d53e9e cleanup 2021-12-15 18:20:52 +01:00
622bc3c2e8 cleanup 2021-12-15 18:20:10 +01:00
3 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ public:
// compute [first; last( iterators for sub-range
std::size_t size = bucketSize + remains;
Iterator first = begin + offset;
Iterator last = first + bucketSize + remains;
Iterator last = begin + offset + size;
// add appropriate search job
jobList_.push_back(SearchJob<Iterator>(first, last, pattern));
@ -60,7 +60,7 @@ public:
th.join();
}
// collec the results
// collect the results
for (SearchJob<Iterator>& job : jobList_)
{
result_.insert(result_.end(), job.get_result().begin(), job.get_result().end());

View File

@ -44,9 +44,9 @@ public:
private:
// pattern to search for
std::string pattern_;
// first valid index
// start of search range
Iterator begin_;
// last valid index
// end of search range
Iterator end_;
// result of the search
ResultList result_;

View File

@ -71,7 +71,7 @@ int main()
// TODO add validation of results
// TODO brush up output
// TODO command line args for workerCount, test-pattern generation ?
// TODO command line args for workerCount, test-pattern generation, search pattern ?
std::cout << std::endl;