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