28#include <unordered_map>
103 std::vector< std::vector< IndexWord> >
m_index;
150 if (std::holds_alternative<SearchIndex>(
m_variant))
152 std::get<SearchIndex>(
m_variant).setCurrentDoc(ctx,anchor,isSourceFile);
154 else if (std::holds_alternative<SearchIndexExternal>(
m_variant))
156 std::get<SearchIndexExternal>(
m_variant).setCurrentDoc(ctx,anchor,isSourceFile);
161 if (std::holds_alternative<SearchIndex>(
m_variant))
165 else if (std::holds_alternative<SearchIndexExternal>(
m_variant))
167 std::get<SearchIndexExternal>(
m_variant).addWord(
word,hiPriority);
172 if (std::holds_alternative<SearchIndex>(
m_variant))
174 std::get<SearchIndex>(
m_variant).write(file);
176 else if (std::holds_alternative<SearchIndexExternal>(
m_variant))
178 std::get<SearchIndexExternal>(
m_variant).write(file);
The common base class of all entity definitions found in the sources.
Class representing a string buffer optimized for growing.
This is an alternative implementation of QCString.
void addUrlIndex(int, bool)
IndexWord(const QCString &word)
std::unordered_map< int, URLInfo > URLInfoMap
Writes search index that should be used with an externally provided search engine,...
void addWord(const QCString &word, bool hiPriority)
SearchDocEntry * m_current
void write(const QCString &file)
std::map< std::string, SearchDocEntry > m_docEntries
void setCurrentDoc(const Definition *ctx, const QCString &anchor, bool isSourceFile)
Writes search index for doxygen provided server based search engine that uses PHP.
std::map< int, URL > m_urls
void addWordRec(const QCString &word, bool hiPrio, bool recurse)
void addWord(const QCString &word, bool hiPriority)
std::vector< std::vector< IndexWord > > m_index
std::unordered_map< std::string, int > m_words
std::unordered_map< std::string, int > m_url2IdMap
void write(const QCString &file)
void setCurrentDoc(const Definition *ctx, const QCString &anchor, bool isSourceFile)
void addWord(const QCString &word, bool hiPriority)
void setCurrentDoc(const Definition *ctx, const QCString &anchor, bool isSourceFile)
SearchIndexVariant m_variant
std::variant< std::monostate, SearchIndex, SearchIndexExternal > SearchIndexVariant
void write(const QCString &file)
void finalizeSearchIndexer()
SIData_CurrentDoc(const Definition *d, const QCString &a, bool b)
SIData_Word(const QCString &w, bool b)
URL(const QCString &n, const QCString &u)