Public Member Functions | List of all members
DirSDict Class Reference

#include <dirdef.h>

Inheritance diagram for DirSDict:
SDict< DirDef >

Public Member Functions

 DirSDict (int size)
 
int compareValues (const DirDef *item1, const DirDef *item2) const
 
- Public Member Functions inherited from SDict< DirDef >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const DirDef *d)
 
void prepend (const char *key, const DirDef *d)
 
bool remove (const char *key)
 
DirDeftake (const char *key)
 
void sort ()
 
void inSort (const char *key, const DirDef *d)
 
void insertAt (int i, const char *key, const DirDef *d)
 
void setAutoDelete (bool val)
 
DirDeffind (const char *key)
 
DirDeffind (const QCString &key)
 
DirDeffind (const QString &key)
 
int findAt (const QCString &key)
 
DirDefoperator[] (const char *key) const
 
DirDefat (uint i)
 
void clear ()
 
int count () const
 

Detailed Description

A sorted dictionary of DirDef objects.

Definition at line 171 of file dirdef.h.

Constructor & Destructor Documentation

DirSDict::DirSDict ( int  size)
inline

Definition at line 174 of file dirdef.h.

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

Member Function Documentation

int DirSDict::compareValues ( const DirDef item1,
const DirDef item2 
) const
inlinevirtual

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

See also
inSort()

Reimplemented from SDict< DirDef >.

Definition at line 175 of file dirdef.h.

176  {
177  return qstricmp(item1->shortName(),item2->shortName());
178  }
const QCString & shortName() const
Definition: dirdef.h:57
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567

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