2024-03-19 16:10:48 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "finder.h"
|
|
|
|
|
2024-03-20 12:25:28 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2024-03-19 16:10:48 +00:00
|
|
|
class ParallelFinder : public Finder {
|
|
|
|
private:
|
|
|
|
const size_t thread_count_;
|
2024-03-20 12:25:28 +00:00
|
|
|
const std::vector<string> &word_list_;
|
2024-03-19 16:10:48 +00:00
|
|
|
|
|
|
|
public:
|
2024-03-20 12:25:28 +00:00
|
|
|
ParallelFinder(const std::vector<string> &word_list, size_t thread_count);
|
|
|
|
|
|
|
|
std::forward_list<const std::string *>
|
|
|
|
find_prefix(std::string_view search_term) const override;
|
2024-03-19 16:10:48 +00:00
|
|
|
};
|