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

#include <dirdef.h>

Inheritance diagram for FilePairDict:
SDict< FilePair >

Public Member Functions

 FilePairDict (int size)
 
- Public Member Functions inherited from SDict< FilePair >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const FilePair *d)
 
void prepend (const char *key, const FilePair *d)
 
bool remove (const char *key)
 
FilePairtake (const char *key)
 
void sort ()
 
void inSort (const char *key, const FilePair *d)
 
void insertAt (int i, const char *key, const FilePair *d)
 
void setAutoDelete (bool val)
 
FilePairfind (const char *key)
 
FilePairfind (const QCString &key)
 
FilePairfind (const QString &key)
 
int findAt (const QCString &key)
 
FilePairoperator[] (const char *key) const
 
FilePairat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

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

Detailed Description

A sorted dictionary of FilePair objects.

Definition at line 123 of file dirdef.h.

Constructor & Destructor Documentation

FilePairDict::FilePairDict ( int  size)
inline

Definition at line 126 of file dirdef.h.

: SDict<FilePair>(size) {}

Member Function Documentation

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

Definition at line 659 of file dirdef.cpp.

References FilePair::destination(), FileDef::name(), and FilePair::source().

{
int orderHi = qstricmp(left->source()->name(),right->source()->name());
if (orderHi!=0) return orderHi;
int orderLo = qstricmp(left->destination()->name(),right->destination()->name());
return orderLo;
}

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