|
Doxygen
|
A list of index interfaces. More...
#include <src/indexlist.h>
Public Member Functions | |
| void | disable () |
| disable the indices | |
| void | enable () |
| enable the indices | |
| template<class T, class... As> | |
| void | addIndex (As &&... args) |
| Add an index generator to the list, using a syntax similar to std::make_unique<T>(). | |
| void | initialize () |
| void | finalize () |
| void | incContentsDepth () |
| void | decContentsDepth () |
| void | addContentsItem (bool isDir, const DString &name, const DString &ref, const DString &file, const DString &anchor, bool separateIndex=false, bool addToNavIndex=false, const Definition *def=nullptr, const DString &nameAsHtml=DString()) |
| void | addIndexItem (const Definition *context, const MemberDef *md, const DString §ionAnchor=DString(), const DString &title=DString()) |
| void | addIndexFile (const DString &name) |
| void | addImageFile (const DString &name) |
| void | addStyleSheetFile (const DString &name) |
Private Types | |
| using | IndexPtr = std::unique_ptr<IndexIntf> |
Private Member Functions | |
| template<class... Ts, class... As> | |
| void | foreach (void(IndexIntf::*methodPtr)(Ts...), As &&... args) |
| template<class... Ts, class... As> | |
| void | foreach_locked (void(IndexIntf::*methodPtr)(Ts...), As &&... args) |
Private Attributes | |
| bool | m_enabled = true |
| std::mutex | m_mutex |
| std::vector< IndexPtr > | m_indices |
A list of index interfaces.
This class itself implements all methods of IndexIntf and just forwards the calls to all items in the list (composite design pattern).
Definition at line 64 of file indexlist.h.
|
private |
Definition at line 66 of file indexlist.h.
|
inline |
Definition at line 113 of file indexlist.h.
References IndexIntf::addContentsItem(), foreach_locked(), and m_enabled.
Referenced by addMembersToIndex(), PageDefImpl::addSectionsToIndex(), writeAlphabeticalExceptionIndex(), writeAlphabeticalIndex(), writeAlphabeticalInterfaceIndex(), writeAlphabeticalStructIndex(), writeAnnotatedIndexGeneric(), writeClassTreeForList(), writeClassTreeInsideNamespaceElement(), writeClassTreeToOutput(), writeConceptList(), writeDirHierarchy(), writeDirTreeNode(), writeExampleIndex(), writeFileIndex(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), writeHierarchicalInterfaceIndex(), writeMemberToIndex(), writeNamespaceIndex(), and writeNamespaceTreeElement().
|
inline |
Definition at line 124 of file indexlist.h.
References IndexIntf::addImageFile(), foreach_locked(), and m_enabled.
Referenced by copyExtraFiles(), copyIcon(), copyLogo(), FormulaManager::createLatexFile(), DocParser::findAndCopyImage(), MermaidManager::generateMermaidOutput(), PlantumlManager::generatePlantUMLOutput(), writeDiaGraphFromFile(), writeDotGraphFromFile(), DotGraph::writeGraph(), ClassDiagram::writeImage(), writeMscGraphFromFile(), and HtmlGenerator::writeTabData().
|
inline |
Add an index generator to the list, using a syntax similar to std::make_unique<T>().
Definition at line 98 of file indexlist.h.
References m_indices.
Referenced by parseInput().
|
inline |
Definition at line 121 of file indexlist.h.
References IndexIntf::addIndexFile(), foreach_locked(), and m_enabled.
Referenced by HtmlGenerator::startFile().
|
inline |
Definition at line 118 of file indexlist.h.
References IndexIntf::addIndexItem(), foreach_locked(), and m_enabled.
Referenced by addToIndices(), and HtmlDocVisitor::operator()().
|
inline |
Definition at line 127 of file indexlist.h.
References IndexIntf::addStyleSheetFile(), foreach_locked(), and m_enabled.
Referenced by writeJavaScriptSearchIndex(), writeJavasScriptSearchDataPage(), HtmlGenerator::writeSearchData(), HtmlGenerator::writeStyleInfo(), and HtmlGenerator::writeTabData().
|
inline |
Definition at line 110 of file indexlist.h.
References IndexIntf::decContentsDepth(), foreach_locked(), and m_enabled.
Referenced by addMembersToIndex(), PageDefImpl::addSectionsToIndex(), writeAnnotatedIndexGeneric(), writeClassHierarchy(), writeClassTreeInsideNamespaceElement(), writeClassTreeToOutput(), writeConceptList(), writeDirTreeNode(), writeExampleIndex(), writeFileIndex(), writeMemberToIndex(), writeNamespaceIndex(), and writeNamespaceTreeElement().
|
inline |
disable the indices
Definition at line 89 of file indexlist.h.
References m_enabled.
Referenced by writeAnnotatedIndexGeneric(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), and writeHierarchicalInterfaceIndex().
|
inline |
enable the indices
Definition at line 93 of file indexlist.h.
References m_enabled.
Referenced by writeAnnotatedIndexGeneric(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), and writeHierarchicalInterfaceIndex().
|
inline |
Definition at line 104 of file indexlist.h.
References IndexIntf::finalize().
Referenced by generateOutput().
|
inlineprivate |
Definition at line 69 of file indexlist.h.
|
inlineprivate |
Definition at line 78 of file indexlist.h.
References m_indices, and m_mutex.
Referenced by addContentsItem(), addImageFile(), addIndexFile(), addIndexItem(), addStyleSheetFile(), decContentsDepth(), and incContentsDepth().
|
inline |
Definition at line 107 of file indexlist.h.
References foreach_locked(), IndexIntf::incContentsDepth(), and m_enabled.
Referenced by addMembersToIndex(), PageDefImpl::addSectionsToIndex(), writeAnnotatedIndexGeneric(), writeClassTreeForList(), writeClassTreeInsideNamespaceElement(), writeClassTreeToOutput(), writeConceptList(), writeDirTreeNode(), writeExampleIndex(), writeFileIndex(), writeMemberToIndex(), writeNamespaceIndex(), and writeNamespaceTreeElement().
|
inline |
Definition at line 101 of file indexlist.h.
References IndexIntf::initialize().
Referenced by parseInput().
|
private |
Definition at line 131 of file indexlist.h.
Referenced by addContentsItem(), addImageFile(), addIndexFile(), addIndexItem(), addStyleSheetFile(), decContentsDepth(), disable(), enable(), and incContentsDepth().
|
private |
Definition at line 133 of file indexlist.h.
Referenced by addIndex(), and foreach_locked().
|
private |
Definition at line 132 of file indexlist.h.
Referenced by foreach_locked().