Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SearchIndexList Class Reference

#include <searchindex.h>

Inheritance diagram for SearchIndexList:
SDict< SearchDefinitionList >

Public Types

typedef Definition ElementType
 

Public Member Functions

 SearchIndexList (uint letter)
 
 ~SearchIndexList ()
 
void append (Definition *d)
 
uint letter () const
 
- Public Member Functions inherited from SDict< SearchDefinitionList >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const SearchDefinitionList *d)
 
void prepend (const char *key, const SearchDefinitionList *d)
 
bool remove (const char *key)
 
SearchDefinitionListtake (const char *key)
 
void sort ()
 
void inSort (const char *key, const SearchDefinitionList *d)
 
void insertAt (int i, const char *key, const SearchDefinitionList *d)
 
void setAutoDelete (bool val)
 
SearchDefinitionListfind (const char *key)
 
SearchDefinitionListfind (const QCString &key)
 
SearchDefinitionListfind (const QString &key)
 
int findAt (const QCString &key)
 
SearchDefinitionListoperator[] (const char *key) const
 
SearchDefinitionListat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

int compareValues (const SearchDefinitionList *md1, const SearchDefinitionList *md2) const
 

Private Attributes

uint m_letter
 

Detailed Description

Definition at line 143 of file searchindex.h.

Member Typedef Documentation

Definition at line 146 of file searchindex.h.

Constructor & Destructor Documentation

SearchIndexList::SearchIndexList ( uint  letter)

Definition at line 1254 of file searchindex.cpp.

1256 {
1258 }
const bool FALSE
Definition: qglobal.h:370
void setAutoDelete(bool val)
Definition: sortdict.h:222
uint letter() const
const bool TRUE
Definition: qglobal.h:371
SearchIndexList::~SearchIndexList ( )

Definition at line 1260 of file searchindex.cpp.

1261 {
1262 }

Member Function Documentation

void SearchIndexList::append ( Definition d)

Definition at line 1264 of file searchindex.cpp.

1265 {
1266  SearchDefinitionList *l = find(d->name());
1267  if (l==0)
1268  {
1269  QCString dispName = d->localName();
1271  {
1272  dispName = ((GroupDef*)d)->groupTitle();
1273  }
1274  else if (d->definitionType()==Definition::TypePage)
1275  {
1276  dispName = ((PageDef*)d)->title();
1277  }
1278  l=new SearchDefinitionList(searchId(dispName),dispName);
1280  }
1281  l->append(d);
1282 }
void append(const type *d)
Definition: qlist.h:73
void append(const char *key, const T *d)
Definition: sortdict.h:135
static QStrList * l
Definition: config.cpp:1044
virtual DefType definitionType() const =0
const QCString & name() const
Definition: definition.h:114
static QCString searchId(const QCString &s)
A model of a page symbol.
Definition: pagedef.h:29
SearchDefinitionList * find(const char *key)
Definition: sortdict.h:232
QCString localName() const
int SearchIndexList::compareValues ( const SearchDefinitionList item1,
const SearchDefinitionList item2 
) const
privatevirtual

Function that is used to compare two items when sorting. Overload this to properly sort items.

See also
inSort()

Reimplemented from SDict< SearchDefinitionList >.

Definition at line 1289 of file searchindex.cpp.

1290 {
1291  QCString n1 = md1->getFirst()->localName();
1292  QCString n2 = md2->getFirst()->localName();
1293  return qstricmp(n1.data(),n2.data());
1294 }
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567
const char * data() const
Definition: qcstring.h:207
uint SearchIndexList::letter ( ) const

Definition at line 1284 of file searchindex.cpp.

1285 {
1286  return m_letter;
1287 }

Member Data Documentation

uint SearchIndexList::m_letter
private

Definition at line 153 of file searchindex.h.


The documentation for this class was generated from the following files: