Abstract proxy interface for non-javascript based search indices. More...
Declaration
class SearchIndexIntf { ... }
Public Member Typedefs Index
Enumerations Index
Public Constructors Index
Public Member Functions Index
Private Member Attributes Index
Description
Abstract proxy interface for non-javascript based search indices.
It forwards calls to either SearchIndex or SearchIndexExternal depending on the Kind passed during construction.
Definition at line 140 of file searchindex.h.
Public Member Typedefs
SearchIndexVariant
| using SearchIndexIntf::SearchIndexVariant = std::variant<std::monostate,SearchIndex,SearchIndexExternal> |
|
Enumerations
Kind
| enum SearchIndexIntf::Kind |
|
Public Constructors
SearchIndexIntf()
| SearchIndexIntf::SearchIndexIntf () |
|
inline
|
Public Member Functions
addWord()
| void SearchIndexIntf::addWord (const QCString & word, bool hiPriority) |
|
inline
|
Definition at line 159 of file searchindex.h.
160 {
161 if (std::holds_alternative<SearchIndex>(m_variant))
162 {
163 std::get<SearchIndex>(m_variant).addWord(word,hiPriority);
164 }
165 else if (std::holds_alternative<SearchIndexExternal>(m_variant))
166 {
167 std::get<SearchIndexExternal>(m_variant).addWord(word,hiPriority);
168 }
169 }
Reference m_variant.
enabled()
| bool SearchIndexIntf::enabled () |
|
inline
|
kind()
| Kind SearchIndexIntf::kind () |
|
inline
|
setCurrentDoc()
| void SearchIndexIntf::setCurrentDoc (const Definition * ctx, const QCString & anchor, bool isSourceFile) |
|
inline
|
Definition at line 148 of file searchindex.h.
149 {
150 if (std::holds_alternative<SearchIndex>(m_variant))
151 {
152 std::get<SearchIndex>(m_variant).setCurrentDoc(ctx,anchor,isSourceFile);
153 }
154 else if (std::holds_alternative<SearchIndexExternal>(m_variant))
155 {
156 std::get<SearchIndexExternal>(m_variant).setCurrentDoc(ctx,anchor,isSourceFile);
157 }
158 }
Reference m_variant.
setKind()
| void SearchIndexIntf::setKind (Kind k) |
|
inline
|
write()
| void SearchIndexIntf::write (const QCString & file) |
|
inline
|
Definition at line 170 of file searchindex.h.
171 {
172 if (std::holds_alternative<SearchIndex>(m_variant))
173 {
174 std::get<SearchIndex>(m_variant).write(file);
175 }
176 else if (std::holds_alternative<SearchIndexExternal>(m_variant))
177 {
178 std::get<SearchIndexExternal>(m_variant).write(file);
179 }
180 }
Reference m_variant.
Private Member Attributes
m_kind
| Kind SearchIndexIntf::m_kind |
|
m_variant
| SearchIndexVariant SearchIndexIntf::m_variant |
|
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.14.0.