Doxygen
|
A helper class for HtmlHelp that manages a two level index in alphabetical order. 更多...
Public 成员函数 | |
HtmlHelpIndex (HtmlHelpRecoder &recoder) | |
~HtmlHelpIndex () | |
void | addItem (const QCString &first, const QCString &second, const QCString &url, const QCString &anchor, bool hasLink, bool reversed) |
void | writeFields (std::ostream &t) |
size_t | size () const |
Private 属性 | |
LinkedMap< IndexField > | m_map |
HtmlHelpRecoder & | m_recoder |
A helper class for HtmlHelp that manages a two level index in alphabetical order.
在文件 htmlhelp.cpp 第 114 行定义.
HtmlHelpIndex::HtmlHelpIndex | ( | HtmlHelpRecoder & | recoder | ) |
HtmlHelpIndex::~HtmlHelpIndex | ( | ) |
void HtmlHelpIndex::addItem | ( | const QCString & | level1, |
const QCString & | level2, | ||
const QCString & | url, | ||
const QCString & | anchor, | ||
bool | hasLink, | ||
bool | reversed | ||
) |
Stores an item in the index if it is not already present. Items are stored in alphabetical order, by sorting on the concatenation of level1 and level2 (if present).
level1 | the string at level 1 in the index. |
level2 | the string at level 2 in the index (or 0 if not applicable). |
url | the url of the documentation (without .html extension). |
anchor | the anchor of the documentation within the page. |
hasLink | if true, the url (without anchor) can be used in the level1 item, when writing the header of a list of level2 items. |
reversed | TRUE if level1 is the member name and level2 the compound name. |
在文件 htmlhelp.cpp 第 152 行定义.
引用了 LinkedMap< T, Hash, KeyEqual, Map >::add(), QCString::isEmpty(), m_map, reg::search() , 以及 QCString::str().
|
inline |
在文件 htmlhelp.cpp 第 123 行定义.
void HtmlHelpIndex::writeFields | ( | std::ostream & | t | ) |
Writes the sorted list of index items into a html like list.
An list of calls with name = level1,level2
as follows:
a1,b1 a1,b2 a2,b1 a2,b2 a3 a4,b1
Will result in the following list:
a1 -> link to url if hasLink==TRUE b1 -> link to url::anchor b2 -> link to url::anchor a2 -> link to url if hasLink==TRUE b1 -> link to url::anchor b2 -> link to url::anchor a3 -> link to url if hasLink==TRUE a4 -> link to url if hasLink==TRUE b1 -> link to url::anchor
在文件 htmlhelp.cpp 第 212 行定义.
引用了 begin(), convertToHtml(), end(), FALSE, field2URL(), QCString::isEmpty(), QCString::left(), m_map, m_recoder, HtmlHelpRecoder::recode(), QCString::right() , 以及 TRUE.
|
private |
在文件 htmlhelp.cpp 第 125 行定义.
被这些函数引用 addItem(), size() , 以及 writeFields().
|
private |
在文件 htmlhelp.cpp 第 126 行定义.
被这些函数引用 writeFields().