Doxygen
|
#include <utility>
#include <algorithm>
#include <cassert>
#include "searchindex_js.h"
#include "doxygen.h"
#include "groupdef.h"
#include "pagedef.h"
#include "namespacedef.h"
#include "classdef.h"
#include "classlist.h"
#include "membername.h"
#include "filename.h"
#include "language.h"
#include "textstream.h"
#include "util.h"
#include "version.h"
#include "message.h"
#include "resourcemgr.h"
#include "indexlist.h"
#include "portable.h"
#include "threadpool.h"
#include "moduledef.h"
#include "section.h"
Go to the source code of this file.
Macros | |
#define | SEARCH_INDEX_ALL 0 |
#define | SEARCH_INDEX_CLASSES 1 |
#define | SEARCH_INDEX_INTERFACES 2 |
#define | SEARCH_INDEX_STRUCTS 3 |
#define | SEARCH_INDEX_EXCEPTIONS 4 |
#define | SEARCH_INDEX_NAMESPACES 5 |
#define | SEARCH_INDEX_FILES 6 |
#define | SEARCH_INDEX_FUNCTIONS 7 |
#define | SEARCH_INDEX_VARIABLES 8 |
#define | SEARCH_INDEX_TYPEDEFS 9 |
#define | SEARCH_INDEX_SEQUENCES 10 |
#define | SEARCH_INDEX_DICTIONARIES 11 |
#define | SEARCH_INDEX_ENUMS 12 |
#define | SEARCH_INDEX_ENUMVALUES 13 |
#define | SEARCH_INDEX_PROPERTIES 14 |
#define | SEARCH_INDEX_EVENTS 15 |
#define | SEARCH_INDEX_RELATED 16 |
#define | SEARCH_INDEX_DEFINES 17 |
#define | SEARCH_INDEX_GROUPS 18 |
#define | SEARCH_INDEX_PAGES 19 |
#define | SEARCH_INDEX_CONCEPTS 20 |
#define | SEARCH_INDEX_MODULES 21 |
Functions | |
static void | splitSearchTokens (QCString &title, IntVector &indices) |
helper function to simplify the given title string, and fill a list of start positions for the start of each word in the simplified title string. | |
static void | addMemberToSearchIndex (const MemberDef *md) |
void | createJavaScriptSearchIndex () |
static void | writeJavascriptSearchData (const QCString &searchDirName) |
static void | writeJavasScriptSearchDataPage (const QCString &baseName, const QCString &dataFileName, const SearchIndexList &list) |
void | writeJavaScriptSearchIndex () |
const std::array< SearchIndexInfo, NUM_SEARCH_INDICES > & | getSearchIndices () |
Variables | |
static std::array< SearchIndexInfo, NUM_SEARCH_INDICES > | g_searchIndexInfo |
#define SEARCH_INDEX_ALL 0 |
Definition at line 133 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex(), and createJavaScriptSearchIndex().
#define SEARCH_INDEX_CLASSES 1 |
Definition at line 134 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_CONCEPTS 20 |
Definition at line 153 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_DEFINES 17 |
Definition at line 150 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_DICTIONARIES 11 |
Definition at line 144 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_ENUMS 12 |
Definition at line 145 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_ENUMVALUES 13 |
Definition at line 146 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_EVENTS 15 |
Definition at line 148 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_EXCEPTIONS 4 |
Definition at line 137 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_FILES 6 |
Definition at line 139 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_FUNCTIONS 7 |
Definition at line 140 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_GROUPS 18 |
Definition at line 151 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_INTERFACES 2 |
Definition at line 135 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_MODULES 21 |
Definition at line 154 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_NAMESPACES 5 |
Definition at line 138 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_PAGES 19 |
Definition at line 152 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_PROPERTIES 14 |
Definition at line 147 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_RELATED 16 |
Definition at line 149 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_SEQUENCES 10 |
Definition at line 143 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_STRUCTS 3 |
Definition at line 136 of file searchindex_js.cpp.
Referenced by createJavaScriptSearchIndex().
#define SEARCH_INDEX_TYPEDEFS 9 |
Definition at line 142 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
#define SEARCH_INDEX_VARIABLES 8 |
Definition at line 141 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex().
|
static |
Definition at line 189 of file searchindex_js.cpp.
References Config_getBool, g_searchIndexInfo, MemberDef::getClassDef(), MemberDef::getFileDef(), MemberDef::getGroupDef(), MemberDef::getNamespaceDef(), MemberDef::isDefine(), MemberDef::isDictionary(), QCString::isEmpty(), MemberDef::isEnumerate(), MemberDef::isEnumValue(), MemberDef::isEvent(), MemberDef::isForeign(), MemberDef::isFriend(), MemberDef::isFunction(), Definition::isLinkable(), MemberDef::isProperty(), MemberDef::isRelated(), MemberDef::isSequence(), MemberDef::isSignal(), MemberDef::isSlot(), MemberDef::isTypedef(), MemberDef::isVariable(), Definition::name(), SEARCH_INDEX_ALL, SEARCH_INDEX_DEFINES, SEARCH_INDEX_DICTIONARIES, SEARCH_INDEX_ENUMS, SEARCH_INDEX_ENUMVALUES, SEARCH_INDEX_EVENTS, SEARCH_INDEX_FUNCTIONS, SEARCH_INDEX_PROPERTIES, SEARCH_INDEX_RELATED, SEARCH_INDEX_SEQUENCES, SEARCH_INDEX_TYPEDEFS, SEARCH_INDEX_VARIABLES, ClassDef::templateMaster(), and MemberDef::typeString().
Referenced by addToIndices(), and createJavaScriptSearchIndex().
void createJavaScriptSearchIndex | ( | ) |
Definition at line 307 of file searchindex_js.cpp.
References addMemberToSearchIndex(), Doxygen::classLinkedMap, Doxygen::conceptLinkedMap, Config_getBool, ClassDef::Exception, filterTitle(), Doxygen::functionNameLinkedMap, g_searchIndexInfo, Doxygen::groupLinkedMap, Doxygen::inputNameLinkedMap, ModuleManager::instance(), SectionManager::instance(), ClassDef::Interface, Doxygen::mainPage, Doxygen::memberNameLinkedMap, QCString::mid(), Doxygen::namespaceLinkedMap, Doxygen::pageLinkedMap, SEARCH_INDEX_ALL, SEARCH_INDEX_CLASSES, SEARCH_INDEX_CONCEPTS, SEARCH_INDEX_EXCEPTIONS, SEARCH_INDEX_FILES, SEARCH_INDEX_GROUPS, SEARCH_INDEX_INTERFACES, SEARCH_INDEX_MODULES, SEARCH_INDEX_NAMESPACES, SEARCH_INDEX_PAGES, SEARCH_INDEX_STRUCTS, splitSearchTokens(), QCString::str(), and ClassDef::Struct.
Referenced by generateOutput().
const std::array< SearchIndexInfo, NUM_SEARCH_INDICES > & getSearchIndices | ( | ) |
Definition at line 839 of file searchindex_js.cpp.
References g_searchIndexInfo.
helper function to simplify the given title string, and fill a list of start positions for the start of each word in the simplified title string.
Definition at line 89 of file searchindex_js.cpp.
References QCString::at(), QCString::find(), QCString::isEmpty(), isId(), QCString::length(), QCString::mid(), QCString::resize(), QCString::str(), and word.
Referenced by createJavaScriptSearchIndex().
|
static |
Definition at line 497 of file searchindex_js.cpp.
References convertToXML(), g_searchIndexInfo, and Portable::openOutputStream().
Referenced by writeJavaScriptSearchIndex().
void writeJavaScriptSearchIndex | ( | ) |
Definition at line 768 of file searchindex_js.cpp.
References Config_getInt, Config_getString, g_searchIndexInfo, getProjectId(), Doxygen::indexList, ResourceMgr::instance(), Portable::openOutputStream(), ThreadPool::queue(), QCString::sprintf(), substitute(), writeJavascriptSearchData(), and writeJavasScriptSearchDataPage().
Referenced by generateOutput().
|
static |
Definition at line 559 of file searchindex_js.cpp.
References addHtmlExtensionIfMissing(), Definition::anchor(), MemberDef::argsString(), Config_getBool, convertToXML(), Definition::definitionType(), err, externalRef(), FALSE, SectionInfo::fileName(), filterTitle(), found, Definition::getBodyDef(), MemberDef::getClassDef(), MemberDef::getFileDef(), Definition::getLanguage(), getLanguageSpecificSeparator(), MemberDef::getNamespaceDef(), Definition::getOuterScope(), Definition::getOutputFileBase(), Definition::getReference(), Doxygen::globalScope, Doxygen::indexList, MemberDef::isCallable(), QCString::isEmpty(), SectionInfo::label(), Definition::localName(), Definition::name(), Portable::openOutputStream(), prefix, qPrint(), Definition::qualifiedName(), SectionInfo::ref(), MemberDef::resolveAlias(), term, theTranslator, SectionInfo::title(), toClassDef(), toGroupDef(), toMemberDef(), toNamespaceDef(), toPageDef(), TRUE, Definition::TypeClass, Definition::TypeGroup, Definition::TypeModule, Definition::TypeNamespace, Definition::TypePage, and word.
Referenced by writeJavaScriptSearchIndex().
|
static |
Definition at line 156 of file searchindex_js.cpp.
Referenced by addMemberToSearchIndex(), createJavaScriptSearchIndex(), getSearchIndices(), writeJavascriptSearchData(), and writeJavaScriptSearchIndex().