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

#include <memberlist.h>

Inheritance diagram for MemberSDict:
SDict< MemberDef >

Public Member Functions

 MemberSDict (int size=17)
 
virtual ~MemberSDict ()
 
- Public Member Functions inherited from SDict< MemberDef >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const MemberDef *d)
 
void prepend (const char *key, const MemberDef *d)
 
bool remove (const char *key)
 
MemberDeftake (const char *key)
 
void sort ()
 
void inSort (const char *key, const MemberDef *d)
 
void insertAt (int i, const char *key, const MemberDef *d)
 
void setAutoDelete (bool val)
 
MemberDeffind (const char *key)
 
MemberDeffind (const QCString &key)
 
MemberDeffind (const QString &key)
 
int findAt (const QCString &key)
 
MemberDefoperator[] (const char *key) const
 
MemberDefat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

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

Detailed Description

A sorted dictionary of MemberDef objects.

Definition at line 119 of file memberlist.h.

Constructor & Destructor Documentation

MemberSDict::MemberSDict ( int  size = 17)
inline

Definition at line 122 of file memberlist.h.

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

Definition at line 123 of file memberlist.h.

123 {}

Member Function Documentation

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

Definition at line 1000 of file memberlist.cpp.

1001 {
1002  //printf("MemberSDict::compareValues(%s,%s)\n",c1->name().data(),c2->name().data());
1003  int cmp = qstricmp(c1->name(),c2->name());
1004  if (cmp)
1005  {
1006  return cmp;
1007  }
1008  else
1009  {
1010  return c1->getDefLine()-c2->getDefLine();
1011  }
1012 }
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567

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