Public Member Functions | Private Attributes | List of all members
SList< T > Class Template Reference

#include <sortdict.h>

Inheritance diagram for SList< T >:
QList< T > QGList

Public Member Functions

 SList (SDict< T > *owner)
 
virtual ~SList ()
 
int compareValues (const T *item1, const T *item2) const
 
- Public Member Functions inherited from QList< T >
 QList ()
 
 QList (const QList< T > &l)
 
 ~QList ()
 
QList< T > & operator= (const QList< T > &l)
 
bool operator== (const QList< T > &list) const
 
uint count () const
 
bool isEmpty () const
 
bool insert (uint i, const T *d)
 
void inSort (const T *d)
 
void prepend (const T *d)
 
void append (const T *d)
 
bool remove (uint i)
 
bool remove (const T *d)
 
bool removeRef (const T *d)
 
bool removeFirst ()
 
bool removeLast ()
 
T * take (uint i)
 
void clear ()
 
void sort ()
 
int find (const T *d) const
 
int findRef (const T *d) const
 
uint contains (const T *d) const
 
uint containsRef (const T *d) const
 
T * at (uint i) const
 
T * getFirst () const
 
T * getLast () const
 
void setAutoDelete (bool enable)
 

Private Attributes

SDict< T > * m_owner
 

Detailed Description

template<class T>
class SList< T >

internal wrapper class that redirects compareValues() to the dictionary

Definition at line 80 of file sortdict.h.

Constructor & Destructor Documentation

template<class T>
SList< T >::SList ( SDict< T > *  owner)
inline

Definition at line 83 of file sortdict.h.

83 : m_owner(owner) {}
SDict< T > * m_owner
Definition: sortdict.h:90
template<class T>
virtual SList< T >::~SList ( )
inlinevirtual

Definition at line 84 of file sortdict.h.

84 {}

Member Function Documentation

template<class T>
int SList< T >::compareValues ( const T *  item1,
const T *  item2 
) const
inlinevirtual

Reimplemented from QList< T >.

Definition at line 85 of file sortdict.h.

86  {
87  return m_owner->compareValues(item1,item2);
88  }
SDict< T > * m_owner
Definition: sortdict.h:90

Member Data Documentation

template<class T>
SDict<T>* SList< T >::m_owner
private

Definition at line 90 of file sortdict.h.


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