Doxygen
|
Writes search index for doxygen provided server based search engine that uses PHP. More...
#include <src/searchindex.h>
Classes | |
class | IndexWord |
struct | URL |
struct | URLInfo |
Public Member Functions | |
SearchIndex () | |
void | setCurrentDoc (const Definition *ctx, const QCString &anchor, bool isSourceFile) |
void | addWord (const QCString &word, bool hiPriority) |
void | write (const QCString &file) |
Private Member Functions | |
void | addWordRec (const QCString &word, bool hiPrio, bool recurse) |
Private Attributes | |
std::unordered_map< std::string, int > | m_words |
std::vector< std::vector< IndexWord > > | m_index |
std::unordered_map< std::string, int > | m_url2IdMap |
std::map< int, URL > | m_urls |
int | m_urlIndex = -1 |
int | m_urlMaxIndex = 0 |
Writes search index for doxygen provided server based search engine that uses PHP.
Definition at line 65 of file searchindex.h.
SearchIndex::SearchIndex | ( | ) |
void SearchIndex::addWord | ( | const QCString & | word, |
bool | hiPriority ) |
Definition at line 236 of file searchindex.cpp.
References addWordRec(), FALSE, g_searchIndexMutex, and word.
|
private |
Definition at line 195 of file searchindex.cpp.
References addWordRec(), charsToIndex(), FALSE, found, getPrefixIndex(), QCString::lower(), m_index, m_urlIndex, m_words, QCString::str(), TRUE, and word.
Referenced by addWord(), and addWordRec().
void SearchIndex::setCurrentDoc | ( | const Definition * | ctx, |
const QCString & | anchor, | ||
bool | isSourceFile ) |
Definition at line 74 of file searchindex.cpp.
References ClassDef::compoundTypeString(), Config_getString, CSharp, Definition::definitionType(), Fortran, g_searchIndexMutex, Definition::getLanguage(), getLanguageSpecificSeparator(), Definition::getOutputFileBase(), GroupDef::groupTitle(), PageDef::hasTitle(), QCString::isEmpty(), Java, m_url2IdMap, m_urlIndex, m_urlMaxIndex, m_urls, Definition::name(), QCString::prepend(), Definition::qualifiedName(), QCString::str(), substitute(), theTranslator, PageDef::title(), toClassDef(), toFileDef(), toGroupDef(), toMemberDef(), toPageDef(), TRUE, Definition::TypeClass, Definition::TypeFile, Definition::TypeGroup, Definition::TypeMember, Definition::TypeModule, Definition::TypeNamespace, and Definition::TypePage.
void SearchIndex::write | ( | const QCString & | file | ) |
Definition at line 257 of file searchindex.cpp.
References m_index, m_urls, m_words, numIndexEntries, Portable::openOutputStream(), writeInt(), and writeString().
|
private |
Definition at line 103 of file searchindex.h.
Referenced by addWordRec(), SearchIndex(), and write().
|
private |
Definition at line 104 of file searchindex.h.
Referenced by setCurrentDoc().
|
private |
Definition at line 106 of file searchindex.h.
Referenced by addWordRec(), and setCurrentDoc().
|
private |
Definition at line 107 of file searchindex.h.
Referenced by setCurrentDoc().
|
private |
Definition at line 105 of file searchindex.h.
Referenced by setCurrentDoc(), and write().
|
private |
Definition at line 102 of file searchindex.h.
Referenced by addWordRec(), and write().