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

#include <membername.h>

Inheritance diagram for MemberNameSDict:
SDict< MemberName >

Public Member Functions

 MemberNameSDict (int size)
 
 ~MemberNameSDict ()
 
- Public Member Functions inherited from SDict< MemberName >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const MemberName *d)
 
void prepend (const char *key, const MemberName *d)
 
bool remove (const char *key)
 
MemberNametake (const char *key)
 
void sort ()
 
void inSort (const char *key, const MemberName *d)
 
void insertAt (int i, const char *key, const MemberName *d)
 
void setAutoDelete (bool val)
 
MemberNamefind (const char *key)
 
MemberNamefind (const QCString &key)
 
MemberNamefind (const QString &key)
 
int findAt (const QCString &key)
 
MemberNameoperator[] (const char *key) const
 
MemberNameat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

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

Detailed Description

Sorted dictionary of MemberName objects.

Definition at line 46 of file membername.h.

Constructor & Destructor Documentation

MemberNameSDict::MemberNameSDict ( int  size)
inline

Definition at line 49 of file membername.h.

decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
MemberNameSDict::~MemberNameSDict ( )
inline

Definition at line 50 of file membername.h.

50 {}

Member Function Documentation

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

Definition at line 71 of file membername.cpp.

72 {
73  return qstricmp(n1->memberName()+getPrefixIndex(n1->memberName()),
74  n2->memberName()+getPrefixIndex(n2->memberName())
75  );
76 }
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567
int getPrefixIndex(const QCString &name)
Definition: util.cpp:5144

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