diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-09-22 20:13:01 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-09-22 20:13:01 (GMT) |
commit | b740d594fddfb880f5800b991e408bdb42a3f354 (patch) | |
tree | 5da2b20b68f07e1ce10d01b7102a959409be641d /src/searchindex.h | |
parent | 640babbbb6882ce1b1e52563c0617e2f4213eeb8 (diff) | |
download | Doxygen-b740d594fddfb880f5800b991e408bdb42a3f354.zip Doxygen-b740d594fddfb880f5800b991e408bdb42a3f354.tar.gz Doxygen-b740d594fddfb880f5800b991e408bdb42a3f354.tar.bz2 |
Release-1.3.4
Diffstat (limited to 'src/searchindex.h')
-rw-r--r-- | src/searchindex.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/searchindex.h b/src/searchindex.h index f9d9c2f..87fcd70 100644 --- a/src/searchindex.h +++ b/src/searchindex.h @@ -25,55 +25,6 @@ #include <qintdict.h> #include <qvector.h> - -#if 0 // old version -#include "suffixtree.h" -//class IndexTree; -class SuffixTree; - -class DocRef -{ - public: - DocRef(int index,const char *name,const char *url) - { i=index; n=name; u=url; } - ~DocRef() {} - void setOffset(int offset) { o=offset; } - const char *name() const { return n; } - const char *url() const { return u; } - int index() const { return i; } - int offset() const { return o; } - - private: - QCString n; - QCString u; - int i; - int o; -}; - -typedef QList<DocRef> DocRefList; -typedef QDict<DocRef> DocRefDict; - -class SearchIndex -{ - public: - SearchIndex(); - ~SearchIndex(); - void addReference(const char *key,const char *ref); - bool addWord(const char *key,const char *word,bool special); - bool saveIndex(const char *fileName); - void dump() { suffixTree->dump(); } - - private: - //IndexTree *indexTree; - SuffixTree *suffixTree; - DocRefList refList; - DocRefDict refDict; - QIntDict<DocRef> nameIndex; - int indexCount; -}; - -#endif - struct URL { URL(const char *n,const char *u) : name(n), url(u) {} |