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

#include <example.h>

Inheritance diagram for ExampleSDict:
SDict< Example >

Public Member Functions

 ExampleSDict (int size=17)
 
 ~ExampleSDict ()
 
- Public Member Functions inherited from SDict< Example >
 SDict (int size=17, bool caseSensitive=TRUE)
 
virtual ~SDict ()
 
void append (const char *key, const Example *d)
 
void prepend (const char *key, const Example *d)
 
bool remove (const char *key)
 
Exampletake (const char *key)
 
void sort ()
 
void inSort (const char *key, const Example *d)
 
void insertAt (int i, const char *key, const Example *d)
 
void setAutoDelete (bool val)
 
Examplefind (const char *key)
 
Examplefind (const QCString &key)
 
Examplefind (const QString &key)
 
int findAt (const QCString &key)
 
Exampleoperator[] (const char *key) const
 
Exampleat (uint i)
 
void clear ()
 
int count () const
 

Private Member Functions

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

Detailed Description

A sorted dictionary of Example objects.

Definition at line 36 of file example.h.

Constructor & Destructor Documentation

ExampleSDict::ExampleSDict ( int  size = 17)
inline

Definition at line 39 of file example.h.

39 : SDict<Example>(size) {}
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
ExampleSDict::~ExampleSDict ( )
inline

Definition at line 40 of file example.h.

40 {}

Member Function Documentation

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

Definition at line 42 of file example.h.

43  {
44  return qstricmp(item1->name,item2->name);
45  }
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:567
QCString name
Definition: example.h:31

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