2024-03-19 16:10:48 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "finder.h"
|
2024-03-21 07:55:44 +00:00
|
|
|
#include "word_list.h"
|
2024-03-20 12:25:28 +00:00
|
|
|
|
2024-03-19 16:10:48 +00:00
|
|
|
class LinearFinder : public Finder {
|
|
|
|
private:
|
2024-03-21 07:55:44 +00:00
|
|
|
const WordList &word_list_;
|
2024-03-19 16:10:48 +00:00
|
|
|
|
|
|
|
public:
|
2024-03-21 07:55:44 +00:00
|
|
|
LinearFinder(const WordList &word_list);
|
|
|
|
|
2024-03-21 19:16:00 +00:00
|
|
|
WordRefList find_prefix(std::string_view search_term) const override;
|
2024-03-19 16:10:48 +00:00
|
|
|
};
|