VectorSearch/lib_vector_search/include/grouped_finder.h

18 lines
321 B
C
Raw Permalink Normal View History

2024-03-20 15:35:37 +00:00
#pragma once
#include "finder.h"
2024-03-21 07:55:44 +00:00
#include "word_list.h"
2024-03-20 15:35:37 +00:00
2024-03-22 14:37:13 +00:00
#include <unordered_map>
2024-03-20 15:35:37 +00:00
class GroupedFinder : public Finder {
private:
2024-03-22 14:37:13 +00:00
std::unordered_map<char, WordRefList> groups_;
2024-03-20 15:35:37 +00:00
public:
2024-03-21 07:55:44 +00:00
GroupedFinder(const WordList &word_list);
2024-03-20 15:35:37 +00:00
virtual WordRefList
find_prefix(std::string_view search_prefix) const override;
2024-03-20 15:35:37 +00:00
};