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 122 of file dirdef.h.

Constructor & Destructor Documentation

FilePairDict::FilePairDict ( int  size)
inline

Definition at line 125 of file dirdef.h.

125 : SDict<FilePair>(size) {}
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92

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 620 of file dirdef.cpp.

621 {
622  int orderHi = qstricmp(left->source()->name(),right->source()->name());
623  int orderLo = qstricmp(left->destination()->name(),right->destination()->name());
624  return orderHi==0 ? orderLo : orderHi;
625 }
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567

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