My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
GroupSDict Class Reference

#include <groupdef.h>

Inheritance diagram for GroupSDict:
SDict< GroupDef >

Public Member Functions

 GroupSDict (uint size)
 
virtual ~GroupSDict ()
 
- Public Member Functions inherited from SDict< GroupDef >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const GroupDef *d)
 
void prepend (const char *key, const GroupDef *d)
 
bool remove (const char *key)
 
GroupDeftake (const char *key)
 
void sort ()
 
void inSort (const char *key, const GroupDef *d)
 
void insertAt (int i, const char *key, const GroupDef *d)
 
void setAutoDelete (bool val)
 
GroupDeffind (const char *key)
 
GroupDeffind (const QCString &key)
 
GroupDeffind (const QString &key)
 
int findAt (const QCString &key)
 
GroupDefoperator[] (const char *key) const
 
GroupDefat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

int compareValues (const GroupDef *item1, const GroupDef *item2) const
 

Detailed Description

A sorted dictionary of GroupDef objects.

Definition at line 162 of file groupdef.h.

Constructor & Destructor Documentation

GroupSDict::GroupSDict ( uint  size)
inline

Definition at line 165 of file groupdef.h.

: SDict<GroupDef>(size) {}
virtual GroupSDict::~GroupSDict ( )
inlinevirtual

Definition at line 166 of file groupdef.h.

{}

Member Function Documentation

int GroupSDict::compareValues ( const GroupDef item1,
const GroupDef item2 
) const
inlineprivatevirtual

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

See Also
inSort()

Reimplemented from SDict< GroupDef >.

Definition at line 168 of file groupdef.h.

References GroupDef::groupTitle().

{
return qstrcmp(item1->groupTitle(),item2->groupTitle());
}

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