My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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)
SearchIndexList::~SearchIndexList ( )

Definition at line 1260 of file searchindex.cpp.

{
}

Member Function Documentation

void SearchIndexList::append ( Definition d)

Definition at line 1264 of file searchindex.cpp.

References SDict< T >::append(), DefinitionIntf::definitionType(), SDict< SearchDefinitionList >::find(), Definition::localName(), Definition::name(), searchId(), DefinitionIntf::TypeGroup, and DefinitionIntf::TypePage.

{
if (l==0)
{
QCString dispName = d->localName();
{
dispName = ((GroupDef*)d)->groupTitle();
}
{
dispName = ((PageDef*)d)->title();
}
l=new SearchDefinitionList(searchId(dispName),dispName);
}
l->append(d);
}
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.

{
QCString n1 = md1->getFirst()->localName();
QCString n2 = md2->getFirst()->localName();
return qstricmp(n1.data(),n2.data());
}
uint SearchIndexList::letter ( ) const

Definition at line 1284 of file searchindex.cpp.

References m_letter.

Referenced by SymbolIndexContext::Private::letter(), and writeJavascriptSearchIndex().

{
return m_letter;
}

Member Data Documentation

uint SearchIndexList::m_letter
private

Definition at line 153 of file searchindex.h.

Referenced by letter().


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