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

#include <memberlist.h>

Inheritance diagram for MemberSDict:
SDict< MemberDef >

Public Member Functions

 MemberSDict (int size=17)
 
virtual ~MemberSDict ()
 
- Public Member Functions inherited from SDict< MemberDef >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const MemberDef *d)
 
void prepend (const char *key, const MemberDef *d)
 
bool remove (const char *key)
 
MemberDeftake (const char *key)
 
void sort ()
 
void inSort (const char *key, const MemberDef *d)
 
void insertAt (int i, const char *key, const MemberDef *d)
 
void setAutoDelete (bool val)
 
MemberDeffind (const char *key)
 
MemberDeffind (const QCString &key)
 
MemberDeffind (const QString &key)
 
int findAt (const QCString &key)
 
MemberDefoperator[] (const char *key) const
 
MemberDefat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

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

Detailed Description

A sorted dictionary of MemberDef objects.

Definition at line 131 of file memberlist.h.

Constructor & Destructor Documentation

MemberSDict::MemberSDict ( int  size = 17)
inline

Definition at line 134 of file memberlist.h.

: SDict<MemberDef>(size) {}
virtual MemberSDict::~MemberSDict ( )
inlinevirtual

Definition at line 135 of file memberlist.h.

{}

Member Function Documentation

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

Definition at line 1079 of file memberlist.cpp.

References Definition::getDefLine(), and Definition::name().

{
//printf("MemberSDict::compareValues(%s,%s)\n",c1->name().data(),c2->name().data());
int cmp = qstricmp(c1->name(),c2->name());
if (cmp)
{
return cmp;
}
else
{
return c1->getDefLine()-c2->getDefLine();
}
}

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