Skip to main content

The IndexWord Class Reference

Declaration

class SearchIndex::IndexWord { ... }

Public Member Typedefs Index

usingURLInfoMap = std::unordered_map< int, URLInfo >

Public Constructors Index

IndexWord (const QCString &word)

Public Member Functions Index

voidaddUrlIndex (int, bool)
URLInfoMapurls () const
QCStringword () const

Private Member Attributes Index

QCStringm_word
URLInfoMapm_urls

Definition at line 81 of file searchindex.h.

Public Member Typedefs

URLInfoMap

using SearchIndex::IndexWord::URLInfoMap = std::unordered_map<int,URLInfo>

Definition at line 84 of file searchindex.h.

84 using URLInfoMap = std::unordered_map<int,URLInfo>;

Public Constructors

IndexWord()

SearchIndex::IndexWord::IndexWord (const QCString & word)
inline

Definition at line 85 of file searchindex.h.

References m_word and word.

Public Member Functions

addUrlIndex()

void SearchIndex::IndexWord::addUrlIndex (int idx, bool hiPriority)

Declaration at line 86 of file searchindex.h, definition at line 54 of file searchindex.cpp.

54void SearchIndex::IndexWord::addUrlIndex(int idx,bool hiPriority)
55{
56 //printf("IndexWord::addUrlIndex(%d,%d)\n",idx,hiPriority);
57 auto it = m_urls.find(idx);
58 if (it==m_urls.end())
59 {
60 //printf("URLInfo::URLInfo(%d)\n",idx);
61 it = m_urls.emplace(idx,URLInfo(idx,0)).first;
62 }
63 it->second.freq+=2;
64 if (hiPriority) it->second.freq|=1; // mark as high priority document
65}

Reference m_urls.

urls()

URLInfoMap SearchIndex::IndexWord::urls ()
inline

Definition at line 87 of file searchindex.h.

87 URLInfoMap urls() const { return m_urls; }

Reference m_urls.

word()

QCString SearchIndex::IndexWord::word ()
inline

Definition at line 88 of file searchindex.h.

88 QCString word() const { return m_word; }

Reference m_word.

Referenced by IndexWord.

Private Member Attributes

m_urls

URLInfoMap SearchIndex::IndexWord::m_urls

Definition at line 92 of file searchindex.h.

Referenced by addUrlIndex and urls.

m_word

QCString SearchIndex::IndexWord::m_word

Definition at line 91 of file searchindex.h.

Referenced by IndexWord and word.


The documentation for this class was generated from the following files:


Generated via doxygen2docusaurus by Doxygen 1.14.0.