Doxygen
index.h 文件参考
#include <utility>
#include <vector>
#include <memory>
#include "qcstring.h"
+ index.h 的引用(Include)关系图:
+ 此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  IndexIntf
 Abstract interface for index generators. 更多...
 
class  IndexList
 A list of index interfaces. 更多...
 

枚举

enum  IndexSections {
  isTitlePageStart, isTitlePageAuthor, isMainPage, isModuleIndex,
  isDirIndex, isNamespaceIndex, isConceptIndex, isClassHierarchyIndex,
  isCompoundIndex, isFileIndex, isPageIndex, isModuleDocumentation,
  isDirDocumentation, isNamespaceDocumentation, isClassDocumentation, isConceptDocumentation,
  isFileDocumentation, isExampleDocumentation, isPageDocumentation, isPageDocumentation2,
  isEndIndex
}
 
enum  HighlightedItem {
  HLI_None =0, HLI_Main, HLI_Modules, HLI_Namespaces,
  HLI_ClassHierarchy, HLI_InterfaceHierarchy, HLI_ExceptionHierarchy, HLI_Classes,
  HLI_Concepts, HLI_Interfaces, HLI_Structs, HLI_Exceptions,
  HLI_AnnotatedClasses, HLI_AnnotatedInterfaces, HLI_AnnotatedStructs, HLI_AnnotatedExceptions,
  HLI_Files, HLI_NamespaceMembers, HLI_Functions, HLI_Globals,
  HLI_Pages, HLI_Examples, HLI_Search, HLI_UserGroup,
  HLI_ClassVisible, HLI_ConceptVisible, HLI_InterfaceVisible, HLI_StructVisible,
  HLI_ExceptionVisible, HLI_NamespaceVisible, HLI_FileVisible
}
 
enum  ClassMemberHighlight {
  CMHL_All = 0, CMHL_Functions, CMHL_Variables, CMHL_Typedefs,
  CMHL_Enums, CMHL_EnumValues, CMHL_Properties, CMHL_Events,
  CMHL_Related, CMHL_Total = CMHL_Related+1
}
 
enum  FileMemberHighlight {
  FMHL_All = 0, FMHL_Functions, FMHL_Variables, FMHL_Typedefs,
  FMHL_Sequences, FMHL_Dictionaries, FMHL_Enums, FMHL_EnumValues,
  FMHL_Defines, FMHL_Total = FMHL_Defines+1
}
 
enum  NamespaceMemberHighlight {
  NMHL_All = 0, NMHL_Functions, NMHL_Variables, NMHL_Typedefs,
  NMHL_Sequences, NMHL_Dictionaries, NMHL_Enums, NMHL_EnumValues,
  NMHL_Total = NMHL_EnumValues+1
}
 
enum  ClassHighlight {
  CHL_All = 0, CHL_Classes, CHL_Structs, CHL_Unions,
  CHL_Interfaces, CHL_Protocols, CHL_Categories, CHL_Exceptions,
  CHL_Total = CHL_Exceptions+1
}
 

函数

void writeGraphInfo (OutputList &ol)
 
void writeIndexHierarchy (OutputList &ol)
 
void countDataStructures ()
 
void startTitle (OutputList &ol, const QCString &fileName, const DefinitionMutable *def=0)
 
void endTitle (OutputList &ol, const QCString &fileName, const QCString &name)
 
void startFile (OutputList &ol, const QCString &name, const QCString &manName, const QCString &title, HighlightedItem hli=HLI_None, bool additionalIndices=FALSE, const QCString &altSidebarName=QCString())
 
void endFile (OutputList &ol, bool skipNavIndex=FALSE, bool skipEndContents=FALSE, const QCString &navPath=QCString())
 
void endFileWithNavPath (const Definition *d, OutputList &ol)
 
void initClassMemberIndices ()
 
void initFileMemberIndices ()
 
void initNamespaceMemberIndices ()
 
void addClassMemberNameToIndex (const MemberDef *md)
 
void addFileMemberNameToIndex (const MemberDef *md)
 
void addNamespaceMemberNameToIndex (const MemberDef *md)
 
void sortMemberIndexLists ()
 
QCString fixSpaces (const QCString &s)
 
int countVisibleMembers (const NamespaceDef *nd)
 

变量

int annotatedClasses
 
int annotatedInterfaces
 
int annotatedStructs
 
int annotatedExceptions
 
int hierarchyClasses
 
int hierarchyInterfaces
 
int hierarchyExceptions
 
int documentedFiles
 
int documentedGroups
 
int documentedNamespaces
 
int documentedConcepts
 
int indexedPages
 
int documentedClassMembers [CMHL_Total]
 
int documentedFileMembers [FMHL_Total]
 
int documentedNamespaceMembers [NMHL_Total]
 
int documentedDirs
 
int documentedPages
 

枚举类型说明

◆ ClassHighlight

枚举值
CHL_All 
CHL_Classes 
CHL_Structs 
CHL_Unions 
CHL_Interfaces 
CHL_Protocols 
CHL_Categories 
CHL_Exceptions 
CHL_Total 

在文件 index.h218 行定义.

219 {
220  CHL_All = 0,
221  CHL_Classes,
222  CHL_Structs,
223  CHL_Unions,
229 };

◆ ClassMemberHighlight

枚举值
CMHL_All 
CMHL_Functions 
CMHL_Variables 
CMHL_Typedefs 
CMHL_Enums 
CMHL_EnumValues 
CMHL_Properties 
CMHL_Events 
CMHL_Related 
CMHL_Total 

在文件 index.h177 行定义.

178 {
179  CMHL_All = 0,
183  CMHL_Enums,
186  CMHL_Events,
187  CMHL_Related,
189 };

◆ FileMemberHighlight

枚举值
FMHL_All 
FMHL_Functions 
FMHL_Variables 
FMHL_Typedefs 
FMHL_Sequences 
FMHL_Dictionaries 
FMHL_Enums 
FMHL_EnumValues 
FMHL_Defines 
FMHL_Total 

在文件 index.h191 行定义.

192 {
193  FMHL_All = 0,
199  FMHL_Enums,
201  FMHL_Defines,
203 };

◆ HighlightedItem

枚举值
HLI_None 
HLI_Main 
HLI_Modules 
HLI_Namespaces 
HLI_ClassHierarchy 
HLI_InterfaceHierarchy 
HLI_ExceptionHierarchy 
HLI_Classes 
HLI_Concepts 
HLI_Interfaces 
HLI_Structs 
HLI_Exceptions 
HLI_AnnotatedClasses 
HLI_AnnotatedInterfaces 
HLI_AnnotatedStructs 
HLI_AnnotatedExceptions 
HLI_Files 
HLI_NamespaceMembers 
HLI_Functions 
HLI_Globals 
HLI_Pages 
HLI_Examples 
HLI_Search 
HLI_UserGroup 
HLI_ClassVisible 
HLI_ConceptVisible 
HLI_InterfaceVisible 
HLI_StructVisible 
HLI_ExceptionVisible 
HLI_NamespaceVisible 
HLI_FileVisible 

在文件 index.h140 行定义.

◆ IndexSections

枚举值
isTitlePageStart 
isTitlePageAuthor 
isMainPage 
isModuleIndex 
isDirIndex 
isNamespaceIndex 
isConceptIndex 
isClassHierarchyIndex 
isCompoundIndex 
isFileIndex 
isPageIndex 
isModuleDocumentation 
isDirDocumentation 
isNamespaceDocumentation 
isClassDocumentation 
isConceptDocumentation 
isFileDocumentation 
isExampleDocumentation 
isPageDocumentation 
isPageDocumentation2 
isEndIndex 

在文件 index.h115 行定义.

◆ NamespaceMemberHighlight

枚举值
NMHL_All 
NMHL_Functions 
NMHL_Variables 
NMHL_Typedefs 
NMHL_Sequences 
NMHL_Dictionaries 
NMHL_Enums 
NMHL_EnumValues 
NMHL_Total 

在文件 index.h205 行定义.

206 {
207  NMHL_All = 0,
213  NMHL_Enums,
216 };

函数说明

◆ addClassMemberNameToIndex()

void addClassMemberNameToIndex ( const MemberDef md)

在文件 index.cpp2659 行定义.

2660 {
2661  static bool hideFriendCompounds = Config_getBool(HIDE_FRIEND_COMPOUNDS);
2662  const ClassDef *cd=0;
2663 
2664  if (md->isLinkableInProject() &&
2665  (cd=md->getClassDef()) &&
2666  cd->isLinkableInProject() &&
2667  cd->templateMaster()==0)
2668  {
2669  QCString n = md->name();
2670  int index = getPrefixIndex(n);
2671  std::string letter = getUTF8CharAt(n.str(),index);
2672  if (!letter.empty())
2673  {
2674  letter = convertUTF8ToLower(letter);
2675  bool isFriendToHide = hideFriendCompounds &&
2676  (QCString(md->typeString())=="friend class" ||
2677  QCString(md->typeString())=="friend struct" ||
2678  QCString(md->typeString())=="friend union");
2679  if (!(md->isFriend() && isFriendToHide) &&
2680  (!md->isEnumValue() || (md->getEnumScope() && !md->getEnumScope()->isStrong()))
2681  )
2682  {
2685  }
2686  if (md->isFunction() || md->isSlot() || md->isSignal())
2687  {
2690  }
2691  else if (md->isVariable())
2692  {
2695  }
2696  else if (md->isTypedef())
2697  {
2700  }
2701  else if (md->isEnumerate())
2702  {
2705  }
2706  else if (md->isEnumValue() && md->getEnumScope() && !md->getEnumScope()->isStrong())
2707  {
2710  }
2711  else if (md->isProperty())
2712  {
2715  }
2716  else if (md->isEvent())
2717  {
2720  }
2721  else if (md->isRelated() || md->isForeign() ||
2722  (md->isFriend() && !isFriendToHide))
2723  {
2726  }
2727  }
2728  }
2729 }

引用了 CMHL_All, CMHL_Enums, CMHL_EnumValues, CMHL_Events, CMHL_Functions, CMHL_Properties, CMHL_Related, CMHL_Typedefs, CMHL_Variables, Config_getBool, convertUTF8ToLower(), documentedClassMembers, g_classIndexLetterUsed, MemberDef::getClassDef(), MemberDef::getEnumScope(), getPrefixIndex(), getUTF8CharAt(), MemberDef::isEnumerate(), MemberDef::isEnumValue(), MemberDef::isEvent(), MemberDef::isForeign(), MemberDef::isFriend(), MemberDef::isFunction(), MemberDef::isLinkableInProject(), ClassDef::isLinkableInProject(), MemberDef::isProperty(), MemberDef::isRelated(), MemberDef::isSignal(), MemberDef::isSlot(), MemberDef::isStrong(), MemberDef::isTypedef(), MemberDef::isVariable(), MemberIndexMap_add(), Definition::name(), QCString::str(), ClassDef::templateMaster() , 以及 MemberDef::typeString().

被这些函数引用 addMembersToIndex().

◆ addFileMemberNameToIndex()

void addFileMemberNameToIndex ( const MemberDef md)

在文件 index.cpp2811 行定义.

2812 {
2813  const FileDef *fd=md->getFileDef();
2814  if (fd && fd->isLinkableInProject() && md->isLinkableInProject())
2815  {
2816  QCString n = md->name();
2817  int index = getPrefixIndex(n);
2818  std::string letter = getUTF8CharAt(n.str(),index);
2819  if (!letter.empty())
2820  {
2821  letter = convertUTF8ToLower(letter);
2822  if (!md->isEnumValue() || (md->getEnumScope() && !md->getEnumScope()->isStrong()))
2823  {
2826  }
2827 
2828  if (md->isFunction())
2829  {
2832  }
2833  else if (md->isVariable())
2834  {
2837  }
2838  else if (md->isTypedef())
2839  {
2842  }
2843  else if (md->isSequence())
2844  {
2847  }
2848  else if (md->isDictionary())
2849  {
2852  }
2853  else if (md->isEnumerate())
2854  {
2857  }
2858  else if (md->isEnumValue() && md->getEnumScope() && !md->getEnumScope()->isStrong())
2859  {
2862  }
2863  else if (md->isDefine())
2864  {
2867  }
2868  }
2869  }
2870 }

引用了 convertUTF8ToLower(), documentedFileMembers, FMHL_All, FMHL_Defines, FMHL_Dictionaries, FMHL_Enums, FMHL_EnumValues, FMHL_Functions, FMHL_Sequences, FMHL_Typedefs, FMHL_Variables, g_fileIndexLetterUsed, MemberDef::getEnumScope(), MemberDef::getFileDef(), getPrefixIndex(), getUTF8CharAt(), MemberDef::isDefine(), MemberDef::isDictionary(), MemberDef::isEnumerate(), MemberDef::isEnumValue(), MemberDef::isFunction(), FileDef::isLinkableInProject(), MemberDef::isLinkableInProject(), MemberDef::isSequence(), MemberDef::isStrong(), MemberDef::isTypedef(), MemberDef::isVariable(), MemberIndexMap_add(), Definition::name() , 以及 QCString::str().

被这些函数引用 addMembersToIndex().

◆ addNamespaceMemberNameToIndex()

void addNamespaceMemberNameToIndex ( const MemberDef md)

在文件 index.cpp2743 行定义.

2744 {
2745  const NamespaceDef *nd=md->getNamespaceDef();
2746  if (nd && nd->isLinkableInProject() && md->isLinkableInProject())
2747  {
2748  QCString n = md->name();
2749  int index = getPrefixIndex(n);
2750  std::string letter = getUTF8CharAt(n.str(),index);
2751  if (!letter.empty())
2752  {
2753  letter = convertUTF8ToLower(letter);
2754  if (!md->isEnumValue() || (md->getEnumScope() && !md->getEnumScope()->isStrong()))
2755  {
2758  }
2759 
2760  if (md->isFunction())
2761  {
2764  }
2765  else if (md->isVariable())
2766  {
2769  }
2770  else if (md->isTypedef())
2771  {
2774  }
2775  else if (md->isSequence())
2776  {
2779  }
2780  else if (md->isDictionary())
2781  {
2784  }
2785  else if (md->isEnumerate())
2786  {
2789  }
2790  else if (md->isEnumValue() && md->getEnumScope() && !md->getEnumScope()->isStrong())
2791  {
2794  }
2795  }
2796  }
2797 }

引用了 convertUTF8ToLower(), documentedNamespaceMembers, g_namespaceIndexLetterUsed, MemberDef::getEnumScope(), MemberDef::getNamespaceDef(), getPrefixIndex(), getUTF8CharAt(), MemberDef::isDictionary(), MemberDef::isEnumerate(), MemberDef::isEnumValue(), MemberDef::isFunction(), NamespaceDef::isLinkableInProject(), MemberDef::isLinkableInProject(), MemberDef::isSequence(), MemberDef::isStrong(), MemberDef::isTypedef(), MemberDef::isVariable(), MemberIndexMap_add(), Definition::name(), NMHL_All, NMHL_Dictionaries, NMHL_Enums, NMHL_EnumValues, NMHL_Functions, NMHL_Sequences, NMHL_Typedefs, NMHL_Variables , 以及 QCString::str().

被这些函数引用 addMembersToIndex().

◆ countDataStructures()

void countDataStructures ( )

在文件 index.cpp87 行定义.

88 {
89  static bool sliceOpt = Config_getBool(OPTIMIZE_OUTPUT_SLICE);
92  // "interfaces" + "annotated"
94  // "interfacehierarchy"
96  // "structs" + "annotated"
98  // "exceptions" + "annotated"
100  // "exceptionhierarchy"
104  documentedGroups = countGroups(); // "modules"
105  documentedNamespaces = countNamespaces(); // "namespaces"
106  documentedConcepts = countConcepts(); // "concepts"
107  documentedDirs = countDirs(); // "dirs"
108  // "globals"
109  // "namespacemembers"
110  // "functions"
111 }

引用了 annotatedClasses, annotatedClassesPrinted, annotatedExceptions, annotatedExceptionsPrinted, annotatedInterfaces, annotatedInterfacesPrinted, annotatedStructs, annotatedStructsPrinted, ClassDef::Class, Config_getBool, countAnnotatedClasses(), countClassHierarchy(), countConcepts(), countDirs(), countFiles(), countGroups(), countNamespaces(), countRelatedPages(), documentedConcepts, documentedDirs, documentedFiles, documentedGroups, documentedNamespaces, documentedPages, ClassDef::Exception, hierarchyClasses, hierarchyExceptions, hierarchyInterfaces, indexedPages, ClassDef::Interface , 以及 ClassDef::Struct.

被这些函数引用 parseInput().

◆ countVisibleMembers()

int countVisibleMembers ( const NamespaceDef nd)

在文件 index.cpp1591 行定义.

1592 {
1593  int count=0;
1594  for (const auto &lde : LayoutDocManager::instance().docEntries(LayoutDocManager::Namespace))
1595  {
1596  if (lde->kind()==LayoutDocEntry::MemberDef)
1597  {
1598  const LayoutDocEntryMemberDef *lmd = (const LayoutDocEntryMemberDef*)lde.get();
1599  MemberList *ml = nd->getMemberList(lmd->type);
1600  if (ml)
1601  {
1602  for (const auto &md : *ml)
1603  {
1604  if (md->visibleInIndex())
1605  {
1606  count++;
1607  }
1608  }
1609  }
1610  }
1611  }
1612  return count;
1613 }

引用了 NamespaceDef::getMemberList(), LayoutDocManager::instance(), LayoutDocEntry::MemberDef, LayoutDocManager::Namespace , 以及 LayoutDocEntryMemberDef::type.

被这些函数引用 NestingContext::Private::addNamespace() , 以及 writeNamespaceTreeElement().

◆ endFile()

void endFile ( OutputList ol,
bool  skipNavIndex = FALSE,
bool  skipEndContents = FALSE,
const QCString navPath = QCString() 
)

在文件 index.cpp254 行定义.

256 {
257  static bool generateTreeView = Config_getBool(GENERATE_TREEVIEW);
258  ol.pushGeneratorState();
260  if (!skipNavIndex)
261  {
262  if (!skipEndContents) ol.endContents();
263  if (generateTreeView)
264  {
265  ol.writeString("</div><!-- doc-content -->\n");
266  }
267  }
268 
269  ol.writeFooter(navPath); // write the footer
270  ol.popGeneratorState();
271  ol.endFile();
272 }

引用了 Config_getBool, OutputList::disableAllBut(), OutputList::endContents(), OutputList::endFile(), OutputGenerator::Html, OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputList::writeFooter() , 以及 OutputList::writeString().

被这些函数引用 endFileWithNavPath(), generateExampleDocs(), writeAlphabeticalExceptionIndex(), writeAlphabeticalIndex(), writeAlphabeticalInterfaceIndex(), writeAlphabeticalStructIndex(), writeAnnotatedIndexGeneric(), writeClassMemberIndexFiltered(), writeConceptIndex(), PageDefImpl::writeDocumentation(), GroupDefImpl::writeDocumentation(), MemberList::writeDocumentationPage(), writeExampleIndex(), writeFileIndex(), writeFileMemberIndexFiltered(), writeGraphicalClassHierarchy(), writeGraphicalExceptionHierarchy(), writeGraphicalInterfaceHierarchy(), writeGraphInfo(), writeGroupIndex(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), writeHierarchicalInterfaceIndex(), writeIndex(), ClassDefImpl::writeMemberList(), writeNamespaceIndex(), writeNamespaceMemberIndexFiltered(), writePageIndex() , 以及 writeUserGroupStubPage().

◆ endFileWithNavPath()

◆ endTitle()

◆ fixSpaces()

QCString fixSpaces ( const QCString s)

◆ initClassMemberIndices()

void initClassMemberIndices ( )

在文件 index.cpp2649 行定义.

2650 {
2651  int j=0;
2652  for (j=0;j<CMHL_Total;j++)
2653  {
2655  g_classIndexLetterUsed[j].clear();
2656  }
2657 }

引用了 CMHL_Total, documentedClassMembers , 以及 g_classIndexLetterUsed.

被这些函数引用 initDoxygen().

◆ initFileMemberIndices()

void initFileMemberIndices ( )

在文件 index.cpp2801 行定义.

2802 {
2803  int j=0;
2804  for (j=0;j<NMHL_Total;j++)
2805  {
2806  documentedFileMembers[j]=0;
2807  g_fileIndexLetterUsed[j].clear();
2808  }
2809 }

引用了 documentedFileMembers, g_fileIndexLetterUsed , 以及 NMHL_Total.

被这些函数引用 initDoxygen().

◆ initNamespaceMemberIndices()

void initNamespaceMemberIndices ( )

在文件 index.cpp2733 行定义.

2734 {
2735  int j=0;
2736  for (j=0;j<NMHL_Total;j++)
2737  {
2739  g_namespaceIndexLetterUsed[j].clear();
2740  }
2741 }

引用了 documentedNamespaceMembers, g_namespaceIndexLetterUsed , 以及 NMHL_Total.

被这些函数引用 initDoxygen().

◆ sortMemberIndexLists()

void sortMemberIndexLists ( )

在文件 index.cpp2887 行定义.

2888 {
2889  for (auto &idx : g_classIndexLetterUsed)
2890  {
2891  sortMemberIndexList(idx);
2892  }
2893  for (auto &idx : g_fileIndexLetterUsed)
2894  {
2895  sortMemberIndexList(idx);
2896  }
2897  for (auto &idx : g_namespaceIndexLetterUsed)
2898  {
2899  sortMemberIndexList(idx);
2900  }
2901 }

引用了 g_classIndexLetterUsed, g_fileIndexLetterUsed, g_namespaceIndexLetterUsed , 以及 sortMemberIndexList().

被这些函数引用 addMembersToIndex().

◆ startFile()

void startFile ( OutputList ol,
const QCString name,
const QCString manName,
const QCString title,
HighlightedItem  hli = HLI_None,
bool  additionalIndices = FALSE,
const QCString altSidebarName = QCString() 
)

在文件 index.cpp235 行定义.

238 {
239  static bool disableIndex = Config_getBool(DISABLE_INDEX);
240  ol.startFile(name,manName,title);
241  ol.startQuickIndices();
242  if (!disableIndex)
243  {
244  ol.writeQuickLinks(TRUE,hli,name);
245  }
246  if (!additionalIndices)
247  {
248  ol.endQuickIndices();
249  }
250  ol.writeSplitBar(!altSidebarName.isEmpty() ? altSidebarName : name);
251  ol.writeSearchInfo();
252 }

引用了 Config_getBool, OutputList::endQuickIndices(), QCString::isEmpty(), OutputList::startFile(), OutputList::startQuickIndices(), TRUE, OutputList::writeQuickLinks(), OutputList::writeSearchInfo() , 以及 OutputList::writeSplitBar().

被这些函数引用 generateExampleDocs(), writeAlphabeticalExceptionIndex(), writeAlphabeticalIndex(), writeAlphabeticalInterfaceIndex(), writeAlphabeticalStructIndex(), writeAnnotatedIndexGeneric(), writeConceptIndex(), NamespaceDefImpl::writeDocumentation(), PageDefImpl::writeDocumentation(), DirDefImpl::writeDocumentation(), ConceptDefImpl::writeDocumentation(), GroupDefImpl::writeDocumentation(), FileDefImpl::writeDocumentation(), DirRelation::writeDocumentation(), ClassDefImpl::writeDocumentation(), MemberList::writeDocumentationPage(), writeExampleIndex(), writeFileIndex(), writeGraphicalClassHierarchy(), writeGraphicalExceptionHierarchy(), writeGraphicalInterfaceHierarchy(), writeGraphInfo(), writeGroupIndex(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), writeHierarchicalInterfaceIndex(), writeIndex(), ClassDefImpl::writeMemberList(), writeNamespaceIndex(), writePageIndex(), FileDefImpl::writeSourceHeader() , 以及 writeUserGroupStubPage().

◆ startTitle()

◆ writeGraphInfo()

void writeGraphInfo ( OutputList ol)

在文件 index.cpp3686 行定义.

3687 {
3688  if (!Config_getBool(HAVE_DOT) || !Config_getBool(GENERATE_HTML)) return;
3689  ol.pushGeneratorState();
3691 
3692  DotLegendGraph gd;
3693  gd.writeGraph(Config_getString(HTML_OUTPUT));
3694 
3695  bool stripCommentsStateRef = Config_getBool(STRIP_CODE_COMMENTS);
3696  bool oldStripCommentsState = stripCommentsStateRef;
3697  bool createSubdirs = Config_getBool(CREATE_SUBDIRS);
3698  bool oldCreateSubdirs = createSubdirs;
3699  // temporarily disable the stripping of comments for our own code example!
3700  stripCommentsStateRef = Config_updateBool(STRIP_CODE_COMMENTS,FALSE);
3701  // temporarily disable create subdirs for linking to our example
3702  createSubdirs = Config_updateBool(CREATE_SUBDIRS,FALSE);
3703 
3704  startFile(ol,"graph_legend",QCString(),theTranslator->trLegendTitle());
3705  startTitle(ol,QCString());
3707  endTitle(ol,QCString(),QCString());
3708  ol.startContents();
3709  QCString legendDocs = theTranslator->trLegendDocs();
3710  int s = legendDocs.find("<center>");
3711  int e = legendDocs.find("</center>");
3712  QCString imgExt = getDotImageExtension();
3713  if (imgExt=="svg" && s!=-1 && e!=-1)
3714  {
3715  legendDocs = legendDocs.left(s+8) + "[!-- SVG 0 --]\n" + legendDocs.mid(e);
3716  //printf("legendDocs=%s\n",qPrint(legendDocs));
3717  }
3718  FileDef *fd = createFileDef("","graph_legend.dox");
3719  ol.generateDoc("graph_legend",1,fd,0,legendDocs,FALSE,FALSE,
3721  delete fd;
3722 
3723  // restore config settings
3724  Config_updateBool(STRIP_CODE_COMMENTS,oldStripCommentsState);
3725  Config_updateBool(CREATE_SUBDIRS,oldCreateSubdirs);
3726 
3727  endFile(ol);
3728  ol.popGeneratorState();
3729 }

引用了 Config_getBool, Config_getString, Config_updateBool, createFileDef(), OutputList::disableAllBut(), endFile(), endTitle(), FALSE, QCString::find(), OutputList::generateDoc(), getDotImageExtension(), OutputGenerator::Html, QCString::left(), QCString::mid(), OutputList::parseText(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputList::startContents(), startFile(), startTitle(), theTranslator, Translator::trLegendDocs(), Translator::trLegendTitle() , 以及 DotLegendGraph::writeGraph().

被这些函数引用 generateOutput().

◆ writeIndexHierarchy()

void writeIndexHierarchy ( OutputList ol)

在文件 index.cpp5155 行定义.

5156 {
5157  writeMenuData();
5159  if (lne)
5160  {
5162  }
5163 }

引用了 LayoutNavEntry::children(), LayoutDocManager::instance(), LayoutDocManager::rootNavEntry(), writeIndexHierarchyEntries() , 以及 writeMenuData().

被这些函数引用 generateOutput().

变量说明

◆ annotatedClasses

int annotatedClasses

◆ annotatedExceptions

◆ annotatedInterfaces

◆ annotatedStructs

◆ documentedClassMembers

◆ documentedConcepts

int documentedConcepts

在文件 index.cpp69 行定义.

被这些函数引用 countDataStructures(), quickLinkVisible(), writeConceptIndex() , 以及 writeIndex().

◆ documentedDirs

int documentedDirs

在文件 index.cpp76 行定义.

被这些函数引用 countDataStructures().

◆ documentedFileMembers

◆ documentedFiles

int documentedFiles

◆ documentedGroups

int documentedGroups

在文件 index.cpp67 行定义.

被这些函数引用 countDataStructures(), quickLinkVisible(), writeGroupIndex() , 以及 writeIndex().

◆ documentedNamespaceMembers

◆ documentedNamespaces

int documentedNamespaces

◆ documentedPages

int documentedPages

在文件 index.cpp75 行定义.

被这些函数引用 countDataStructures(), generatePageDocs() , 以及 writeIndex().

◆ hierarchyClasses

int hierarchyClasses

◆ hierarchyExceptions

int hierarchyExceptions

◆ hierarchyInterfaces

int hierarchyInterfaces

◆ indexedPages

int indexedPages

在文件 index.cpp70 行定义.

被这些函数引用 countDataStructures(), quickLinkVisible() , 以及 writePageIndex().

getDotImageExtension
QCString getDotImageExtension()
Definition: util.cpp:7032
OutputList::disableAllBut
void disableAllBut(OutputGenerator::OutputType o)
Definition: outputlist.cpp:76
annotatedClassesPrinted
int annotatedClassesPrinted
Definition: index.cpp:57
isExampleDocumentation
@ isExampleDocumentation
Definition: index.h:134
startTitle
void startTitle(OutputList &ol, const QCString &fileName, const DefinitionMutable *def)
Definition: index.cpp:219
DefinitionMutable::writeSummaryLinks
virtual void writeSummaryLinks(OutputList &) const =0
MemberDef::isTypedef
virtual bool isTypedef() const =0
LayoutNavEntry
Base class for the layout of a navigation item at the top of the HTML pages.
Definition: layout.h:125
isDirDocumentation
@ isDirDocumentation
Definition: index.h:129
HLI_Functions
@ HLI_Functions
Definition: index.h:161
HLI_Classes
@ HLI_Classes
Definition: index.h:150
documentedDirs
int documentedDirs
Definition: index.cpp:76
endTitle
void endTitle(OutputList &ol, const QCString &fileName, const QCString &name)
Definition: index.cpp:228
LayoutDocManager::rootNavEntry
LayoutNavEntry * rootNavEntry() const
returns the (invisible) root of the navigation tree.
Definition: layout.cpp:1585
isNamespaceIndex
@ isNamespaceIndex
Definition: index.h:122
CMHL_EnumValues
@ CMHL_EnumValues
Definition: index.h:184
CMHL_Functions
@ CMHL_Functions
Definition: index.h:180
Translator::trLegendDocs
virtual QCString trLegendDocs()=0
convertUTF8ToLower
std::string convertUTF8ToLower(const std::string &input)
Converts the input string into a lower case version, also taking into account non-ASCII characters th...
Definition: utf8.cpp:187
MemberDef::isSignal
virtual bool isSignal() const =0
hierarchyInterfaces
int hierarchyInterfaces
Definition: index.cpp:61
documentedClassMembers
int documentedClassMembers[CMHL_Total]
Definition: index.cpp:71
NamespaceDef
An abstract interface of a namespace symbol.
Definition: namespacedef.h:54
countNamespaces
static int countNamespaces()
Definition: index.cpp:1497
LayoutDocEntry::MemberDef
@ MemberDef
Definition: layout.h:38
countClassHierarchy
static int countClassHierarchy(ClassDef::CompoundType ct)
Definition: index.cpp:935
HLI_Modules
@ HLI_Modules
Definition: index.h:144
HLI_AnnotatedStructs
@ HLI_AnnotatedStructs
Definition: index.h:157
isFileIndex
@ isFileIndex
Definition: index.h:126
HLI_InterfaceHierarchy
@ HLI_InterfaceHierarchy
Definition: index.h:148
OutputList::endTitleHead
void endTitleHead(const QCString &fileName, const QCString &name)
Definition: outputlist.h:101
annotatedInterfaces
int annotatedInterfaces
Definition: index.cpp:59
isCompoundIndex
@ isCompoundIndex
Definition: index.h:125
annotatedInterfacesPrinted
int annotatedInterfacesPrinted
Definition: index.cpp:60
isTitlePageStart
@ isTitlePageStart
Definition: index.h:117
writeIndexHierarchyEntries
static void writeIndexHierarchyEntries(OutputList &ol, const LayoutNavEntryList &entries)
Definition: index.cpp:4691
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
HLI_InterfaceVisible
@ HLI_InterfaceVisible
Definition: index.h:170
isPageIndex
@ isPageIndex
Definition: index.h:127
documentedFileMembers
int documentedFileMembers[FMHL_Total]
Definition: index.cpp:72
OutputList::writeSplitBar
void writeSplitBar(const QCString &name)
Definition: outputlist.h:351
CHL_Structs
@ CHL_Structs
Definition: index.h:222
OutputList::writeString
void writeString(const QCString &text)
Definition: outputlist.h:111
ClassDef::Interface
@ Interface
Definition: classdef.h:110
CMHL_Typedefs
@ CMHL_Typedefs
Definition: index.h:182
HLI_UserGroup
@ HLI_UserGroup
Definition: index.h:166
HLI_Globals
@ HLI_Globals
Definition: index.h:162
QCString::str
std::string str() const
Definition: qcstring.h:442
annotatedExceptions
int annotatedExceptions
Definition: index.cpp:64
MemberIndexMap_add
void MemberIndexMap_add(MemberIndexMap &map, const std::string &letter, const MemberDef *md)
Definition: index.cpp:154
ClassDef::isLinkableInProject
virtual bool isLinkableInProject() const =0
returns TRUE iff a link is possible to this item within this project.
isClassDocumentation
@ isClassDocumentation
Definition: index.h:131
isModuleDocumentation
@ isModuleDocumentation
Definition: index.h:128
HLI_Examples
@ HLI_Examples
Definition: index.h:164
isConceptIndex
@ isConceptIndex
Definition: index.h:123
FileDef::isLinkableInProject
virtual bool isLinkableInProject() const =0
countRelatedPages
static void countRelatedPages(int &docPages, int &indexPages)
Definition: index.cpp:3522
QCString::find
int find(char c, int index=0, bool cs=TRUE) const
Definition: qcstring.cpp:38
g_namespaceIndexLetterUsed
static std::array< MemberIndexMap, NMHL_Total > g_namespaceIndexLetterUsed
Definition: index.cpp:152
LayoutDocEntryMemberDef::type
MemberListType type
Definition: layout.h:116
MemberDef::isDictionary
virtual bool isDictionary() const =0
FMHL_All
@ FMHL_All
Definition: index.h:193
MemberDef::isProperty
virtual bool isProperty() const =0
CMHL_Enums
@ CMHL_Enums
Definition: index.h:183
ClassDef::Class
@ Class
Definition: classdef.h:107
HLI_AnnotatedExceptions
@ HLI_AnnotatedExceptions
Definition: index.h:158
CHL_Categories
@ CHL_Categories
Definition: index.h:226
HLI_AnnotatedClasses
@ HLI_AnnotatedClasses
Definition: index.h:155
HLI_ClassHierarchy
@ HLI_ClassHierarchy
Definition: index.h:147
MemberDef::isSequence
virtual bool isSequence() const =0
HLI_Files
@ HLI_Files
Definition: index.h:159
ClassDef::templateMaster
virtual const ClassDef * templateMaster() const =0
Returns the template master of which this class is an instance.
HLI_Concepts
@ HLI_Concepts
Definition: index.h:151
LayoutDocManager::Namespace
@ Namespace
Definition: layout.h:203
NamespaceDef::isLinkableInProject
virtual bool isLinkableInProject() const =0
CHL_Interfaces
@ CHL_Interfaces
Definition: index.h:224
LayoutDocEntryMemberDef
Represents of a member definition list with configurable title.
Definition: layout.h:110
OutputList::endQuickIndices
void endQuickIndices()
Definition: outputlist.h:349
HLI_Search
@ HLI_Search
Definition: index.h:165
createFileDef
FileDef * createFileDef(const QCString &p, const QCString &n, const QCString &ref, const QCString &dn)
Definition: filedef.cpp:190
isNamespaceDocumentation
@ isNamespaceDocumentation
Definition: index.h:130
OutputList::startQuickIndices
void startQuickIndices()
Definition: outputlist.h:347
ClassDef
A abstract class representing of a compound symbol.
Definition: classdef.h:103
FMHL_Dictionaries
@ FMHL_Dictionaries
Definition: index.h:198
NMHL_Functions
@ NMHL_Functions
Definition: index.h:208
MemberDef::isFriend
virtual bool isFriend() const =0
isDirIndex
@ isDirIndex
Definition: index.h:121
OutputList::disable
void disable(OutputGenerator::OutputType o)
Definition: outputlist.cpp:100
QCString::left
QCString left(size_t len) const
Definition: qcstring.h:212
FMHL_Defines
@ FMHL_Defines
Definition: index.h:201
MemberDef::isDefine
virtual bool isDefine() const =0
NMHL_EnumValues
@ NMHL_EnumValues
Definition: index.h:214
MemberDef::isVariable
virtual bool isVariable() const =0
isEndIndex
@ isEndIndex
Definition: index.h:137
OutputList::endContents
void endContents()
Definition: outputlist.h:363
NMHL_Dictionaries
@ NMHL_Dictionaries
Definition: index.h:212
MemberDef::isSlot
virtual bool isSlot() const =0
OutputList::startHeaderSection
void startHeaderSection()
Definition: outputlist.h:181
CHL_Classes
@ CHL_Classes
Definition: index.h:221
hierarchyClasses
int hierarchyClasses
Definition: index.cpp:58
HLI_Namespaces
@ HLI_Namespaces
Definition: index.h:146
theTranslator
Translator * theTranslator
Definition: language.cpp:156
sortMemberIndexList
static void sortMemberIndexList(MemberIndexMap &map)
Definition: index.cpp:2874
Definition::name
virtual QCString name() const =0
NMHL_Sequences
@ NMHL_Sequences
Definition: index.h:211
HLI_ConceptVisible
@ HLI_ConceptVisible
Definition: index.h:169
documentedConcepts
int documentedConcepts
Definition: index.cpp:69
MemberDef::getClassDef
virtual const ClassDef * getClassDef() const =0
getUTF8CharAt
std::string getUTF8CharAt(const std::string &input, size_t pos)
Returns the UTF8 character found at byte position pos in the input string.
Definition: utf8.cpp:127
MemberDef::isFunction
virtual bool isFunction() const =0
startFile
void startFile(OutputList &ol, const QCString &name, const QCString &manName, const QCString &title, HighlightedItem hli, bool additionalIndices, const QCString &altSidebarName)
Definition: index.cpp:235
NamespaceDef::getMemberList
virtual MemberList * getMemberList(MemberListType lt) const =0
NMHL_Variables
@ NMHL_Variables
Definition: index.h:209
TRUE
#define TRUE
Definition: qcstring.h:36
MemberDef::getNamespaceDef
virtual const NamespaceDef * getNamespaceDef() const =0
documentedPages
int documentedPages
Definition: index.cpp:75
HLI_AnnotatedInterfaces
@ HLI_AnnotatedInterfaces
Definition: index.h:156
HLI_ExceptionVisible
@ HLI_ExceptionVisible
Definition: index.h:172
Config_updateBool
#define Config_updateBool(name, value)
Definition: config.h:39
isModuleIndex
@ isModuleIndex
Definition: index.h:120
ClassDef::Struct
@ Struct
Definition: classdef.h:108
Definition::navigationPathAsString
virtual QCString navigationPathAsString() const =0
HLI_Exceptions
@ HLI_Exceptions
Definition: index.h:154
OutputGenerator::Html
@ Html
Definition: outputgen.h:333
CMHL_Events
@ CMHL_Events
Definition: index.h:186
isClassHierarchyIndex
@ isClassHierarchyIndex
Definition: index.h:124
MemberDef::isStrong
virtual bool isStrong() const =0
indexedPages
int indexedPages
Definition: index.cpp:70
NMHL_Enums
@ NMHL_Enums
Definition: index.h:213
CHL_Unions
@ CHL_Unions
Definition: index.h:223
OutputList::startContents
void startContents()
Definition: outputlist.h:361
OutputList::writeQuickLinks
void writeQuickLinks(bool compact, HighlightedItem hli, const QCString &file)
Definition: outputlist.h:357
NMHL_Typedefs
@ NMHL_Typedefs
Definition: index.h:210
documentedNamespaces
int documentedNamespaces
Definition: index.cpp:68
OutputList::popGeneratorState
void popGeneratorState()
Definition: outputlist.cpp:134
DotLegendGraph
Representation of a legend explaining the meaning of boxes, arrows, and colors
Definition: dotlegendgraph.h:22
FMHL_Variables
@ FMHL_Variables
Definition: index.h:195
CHL_All
@ CHL_All
Definition: index.h:220
documentedFiles
int documentedFiles
Definition: index.cpp:74
MemberDef::isForeign
virtual bool isForeign() const =0
getPrefixIndex
int getPrefixIndex(const QCString &name)
Definition: util.cpp:3357
HLI_FileVisible
@ HLI_FileVisible
Definition: index.h:174
HLI_NamespaceVisible
@ HLI_NamespaceVisible
Definition: index.h:173
CHL_Total
@ CHL_Total
Definition: index.h:228
OutputList::endHeaderSection
void endHeaderSection()
Definition: outputlist.h:183
documentedGroups
int documentedGroups
Definition: index.cpp:67
countAnnotatedClasses
static int countAnnotatedClasses(int *cp, ClassDef::CompoundType ct)
Definition: index.cpp:1919
QCString::mid
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
Definition: qcstring.h:224
isTitlePageAuthor
@ isTitlePageAuthor
Definition: index.h:118
substitute
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Definition: qcstring.cpp:465
NMHL_All
@ NMHL_All
Definition: index.h:207
MemberDef::isLinkableInProject
virtual bool isLinkableInProject() const =0
writeMenuData
static void writeMenuData()
Definition: index.cpp:5139
FMHL_EnumValues
@ FMHL_EnumValues
Definition: index.h:200
isFileDocumentation
@ isFileDocumentation
Definition: index.h:133
OutputList::startTitleHead
void startTitleHead(const QCString &fileName)
Definition: outputlist.h:99
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
CMHL_Properties
@ CMHL_Properties
Definition: index.h:185
MemberDef::getEnumScope
virtual const MemberDef * getEnumScope() const =0
CHL_Protocols
@ CHL_Protocols
Definition: index.h:225
MemberDef::isEnumerate
virtual bool isEnumerate() const =0
NMHL_Total
@ NMHL_Total
Definition: index.h:215
LayoutDocManager::instance
static LayoutDocManager & instance()
Returns a reference to this singleton.
Definition: layout.cpp:1574
countDirs
static int countDirs()
Definition: index.cpp:3670
g_classIndexLetterUsed
static std::array< MemberIndexMap, CMHL_Total > g_classIndexLetterUsed
Definition: index.cpp:150
MemberDef::isEnumValue
virtual bool isEnumValue() const =0
Translator::trLegendTitle
virtual QCString trLegendTitle()=0
OutputList::parseText
void parseText(const QCString &textStr)
Definition: outputlist.cpp:179
CMHL_Variables
@ CMHL_Variables
Definition: index.h:181
isPageDocumentation
@ isPageDocumentation
Definition: index.h:135
isPageDocumentation2
@ isPageDocumentation2
Definition: index.h:136
MemberDef::getFileDef
virtual const FileDef * getFileDef() const =0
Config_getString
#define Config_getString(name)
Definition: config.h:32
DotLegendGraph::writeGraph
void writeGraph(const QCString &path)
Definition: dotlegendgraph.cpp:26
documentedNamespaceMembers
int documentedNamespaceMembers[NMHL_Total]
Definition: index.cpp:73
annotatedStructs
int annotatedStructs
Definition: index.cpp:62
OutputList::generateDoc
void generateDoc(const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &docStr, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport)
Definition: outputlist.cpp:142
isMainPage
@ isMainPage
Definition: index.h:119
OutputList::endFile
void endFile()
Definition: outputlist.h:97
FMHL_Typedefs
@ FMHL_Typedefs
Definition: index.h:196
HLI_ClassVisible
@ HLI_ClassVisible
Definition: index.h:168
OutputList::pushGeneratorState
void pushGeneratorState()
Definition: outputlist.cpp:126
FileDef
A model of a file symbol.
Definition: filedef.h:73
g_fileIndexLetterUsed
static std::array< MemberIndexMap, FMHL_Total > g_fileIndexLetterUsed
Definition: index.cpp:151
CMHL_Related
@ CMHL_Related
Definition: index.h:187
CHL_Exceptions
@ CHL_Exceptions
Definition: index.h:227
HLI_Main
@ HLI_Main
Definition: index.h:143
OutputList::writeFooter
void writeFooter(const QCString &navPath)
Definition: outputlist.h:95
FMHL_Enums
@ FMHL_Enums
Definition: index.h:199
annotatedExceptionsPrinted
int annotatedExceptionsPrinted
Definition: index.cpp:65
HLI_NamespaceMembers
@ HLI_NamespaceMembers
Definition: index.h:160
HLI_Structs
@ HLI_Structs
Definition: index.h:153
countFiles
static void countFiles(int &htmlFiles, int &files)
Definition: index.cpp:1265
annotatedStructsPrinted
int annotatedStructsPrinted
Definition: index.cpp:63
HLI_Interfaces
@ HLI_Interfaces
Definition: index.h:152
hierarchyExceptions
int hierarchyExceptions
Definition: index.cpp:66
HLI_ExceptionHierarchy
@ HLI_ExceptionHierarchy
Definition: index.h:149
FMHL_Total
@ FMHL_Total
Definition: index.h:202
ClassDef::Exception
@ Exception
Definition: classdef.h:113
OutputList::startFile
void startFile(const QCString &name, const QCString &manName, const QCString &title)
Definition: outputlist.h:88
countGroups
static int countGroups()
Definition: index.cpp:3654
MemberDef::isRelated
virtual bool isRelated() const =0
LayoutNavEntry::children
const LayoutNavEntryList & children() const
Definition: layout.h:179
FMHL_Functions
@ FMHL_Functions
Definition: index.h:194
MemberDef::typeString
virtual QCString typeString() const =0
HLI_None
@ HLI_None
Definition: index.h:142
countConcepts
static int countConcepts()
Definition: index.cpp:1508
FMHL_Sequences
@ FMHL_Sequences
Definition: index.h:197
HLI_StructVisible
@ HLI_StructVisible
Definition: index.h:171
OutputList::writeSearchInfo
void writeSearchInfo()
Definition: outputlist.h:93
MemberList
A list of MemberDef objects as shown in documentation sections.
Definition: memberlist.h:81
HLI_Pages
@ HLI_Pages
Definition: index.h:163
MemberDef::isEvent
virtual bool isEvent() const =0
CMHL_Total
@ CMHL_Total
Definition: index.h:188
CMHL_All
@ CMHL_All
Definition: index.h:179
endFile
void endFile(OutputList &ol, bool skipNavIndex, bool skipEndContents, const QCString &navPath)
Definition: index.cpp:254
FALSE
#define FALSE
Definition: qcstring.h:33
annotatedClasses
int annotatedClasses
Definition: index.cpp:56
isConceptDocumentation
@ isConceptDocumentation
Definition: index.h:132
OutputGenerator::Man
@ Man
Definition: outputgen.h:333
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108