Public Member Functions | Private Member Functions | List of all members
GroupSDict Class Reference

#include <groupdef.h>

Inheritance diagram for GroupSDict:
SDict< GroupDef >

Public Member Functions

 GroupSDict (uint size)
 
virtual ~GroupSDict ()
 
- Public Member Functions inherited from SDict< GroupDef >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const GroupDef *d)
 
void prepend (const char *key, const GroupDef *d)
 
bool remove (const char *key)
 
GroupDeftake (const char *key)
 
void sort ()
 
void inSort (const char *key, const GroupDef *d)
 
void insertAt (int i, const char *key, const GroupDef *d)
 
void setAutoDelete (bool val)
 
GroupDeffind (const char *key)
 
GroupDeffind (const QCString &key)
 
GroupDeffind (const QString &key)
 
int findAt (const QCString &key)
 
GroupDefoperator[] (const char *key) const
 
GroupDefat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

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

Detailed Description

A sorted dictionary of GroupDef objects.

Definition at line 162 of file groupdef.h.

Constructor & Destructor Documentation

GroupSDict::GroupSDict ( uint  size)
inline

Definition at line 165 of file groupdef.h.

165 : SDict<GroupDef>(size) {}
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
virtual GroupSDict::~GroupSDict ( )
inlinevirtual

Definition at line 166 of file groupdef.h.

166 {}

Member Function Documentation

int GroupSDict::compareValues ( const GroupDef item1,
const GroupDef item2 
) const
inlineprivatevirtual

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

See also
inSort()

Reimplemented from SDict< GroupDef >.

Definition at line 168 of file groupdef.h.

169  {
170  return qstrcmp(item1->groupTitle(),item2->groupTitle());
171  }
const char * groupTitle() const
Definition: groupdef.h:54
Q_EXPORT int qstrcmp(const char *str1, const char *str2)
Definition: qcstring.h:95

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