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

#include <sortdict.h>

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

Public Member Functions

 SIntList (SIntDict< T > *owner)
 
virtual ~SIntList ()
 
- 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 Member Functions

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

Private Attributes

SIntDict< T > * m_owner
 

Detailed Description

template<class T>
class SIntList< T >

internal wrapper class that redirects compareValues() to the dictionary

Definition at line 428 of file sortdict.h.

Constructor & Destructor Documentation

template<class T>
SIntList< T >::SIntList ( SIntDict< T > *  owner)
inline

Definition at line 431 of file sortdict.h.

431 : m_owner(owner) {}
SIntDict< T > * m_owner
Definition: sortdict.h:438
template<class T>
virtual SIntList< T >::~SIntList ( )
inlinevirtual

Definition at line 432 of file sortdict.h.

432 {}

Member Function Documentation

template<class T>
int SIntList< T >::compareValues ( const T *  item1,
const T *  item2 
) const
inlineprivatevirtual

Reimplemented from QList< T >.

Definition at line 434 of file sortdict.h.

435  {
436  return m_owner->compareValues(item1,item2);
437  }
SIntDict< T > * m_owner
Definition: sortdict.h:438

Member Data Documentation

template<class T>
SIntDict<T>* SIntList< T >::m_owner
private

Definition at line 438 of file sortdict.h.


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