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

#include <reflist.h>

Inheritance diagram for SortedRefItems:
SDict< RefItem >

Public Member Functions

 SortedRefItems (int size=17)
 
virtual ~SortedRefItems ()
 
- Public Member Functions inherited from SDict< RefItem >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const RefItem *d)
 
void prepend (const char *key, const RefItem *d)
 
bool remove (const char *key)
 
RefItemtake (const char *key)
 
void sort ()
 
void inSort (const char *key, const RefItem *d)
 
void insertAt (int i, const char *key, const RefItem *d)
 
void setAutoDelete (bool val)
 
RefItemfind (const char *key)
 
RefItemfind (const QCString &key)
 
RefItemfind (const QString &key)
 
int findAt (const QCString &key)
 
RefItemoperator[] (const char *key) const
 
RefItemat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

int compareValues (const RefItem *r1, const RefItem *r2) const
 

Detailed Description

List of items sorted by title

Definition at line 45 of file reflist.h.

Constructor & Destructor Documentation

SortedRefItems::SortedRefItems ( int  size = 17)
inline

Definition at line 48 of file reflist.h.

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

Definition at line 49 of file reflist.h.

49 {}

Member Function Documentation

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

Definition at line 51 of file reflist.h.

52  {
53  return qstricmp(r1->title,r2->title);
54  }
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567

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