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
MemberNameSDict Class Reference

#include <membername.h>

Inheritance diagram for MemberNameSDict:
SDict< MemberName >

Public Member Functions

 MemberNameSDict (int size)
 
 ~MemberNameSDict ()
 
- Public Member Functions inherited from SDict< MemberName >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const MemberName *d)
 
void prepend (const char *key, const MemberName *d)
 
bool remove (const char *key)
 
MemberNametake (const char *key)
 
void sort ()
 
void inSort (const char *key, const MemberName *d)
 
void insertAt (int i, const char *key, const MemberName *d)
 
void setAutoDelete (bool val)
 
MemberNamefind (const char *key)
 
MemberNamefind (const QCString &key)
 
MemberNamefind (const QString &key)
 
int findAt (const QCString &key)
 
MemberNameoperator[] (const char *key) const
 
MemberNameat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

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

Detailed Description

Sorted dictionary of MemberName objects.

Definition at line 46 of file membername.h.

Constructor & Destructor Documentation

MemberNameSDict::MemberNameSDict ( int  size)
inline

Definition at line 49 of file membername.h.

MemberNameSDict::~MemberNameSDict ( )
inline

Definition at line 50 of file membername.h.

{}

Member Function Documentation

int MemberNameSDict::compareValues ( const MemberName item1,
const MemberName 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< MemberName >.

Definition at line 71 of file membername.cpp.

References getPrefixIndex(), and MemberName::memberName().

{
return qstricmp(n1->memberName()+getPrefixIndex(n1->memberName()),
n2->memberName()+getPrefixIndex(n2->memberName())
);
}

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