KDECore
KSortableItem< T, Key > Class Template Reference
KSortableItem is a QPair that provides several operators for sorting. More...
#include <ksortablevaluelist.h>

| Public Member Functions | |
| Key | index () const | 
| KSortableItem () | |
| KSortableItem (const KSortableItem< T, Key > &rhs) | |
| KSortableItem (Key i, const T &t) | |
| bool | operator!= (const KSortableItem< T, Key > &i2) const | 
| bool | operator< (const KSortableItem< T, Key > &i2) const | 
| bool | operator<= (const KSortableItem< T, Key > &i2) const | 
| KSortableItem< T, Key > & | operator= (const KSortableItem< T, Key > &i) | 
| bool | operator== (const KSortableItem< T, Key > &i2) const | 
| bool | operator> (const KSortableItem< T, Key > &i2) const | 
| bool | operator>= (const KSortableItem< T, Key > &i2) const | 
| const T & | value () const | 
| T & | value () | 
Detailed Description
template<class T, class Key = int>
 class KSortableItem< T, Key >
KSortableItem is a QPair that provides several operators for sorting. 
- See also:
- KSortableValueList
Definition at line 32 of file ksortablevaluelist.h.
Constructor & Destructor Documentation
| KSortableItem< T, Key >::KSortableItem | ( | Key | i, | |
| const T & | t | |||
| ) |  [inline] | 
Creates a new KSortableItem with the given values.
- Parameters:
- 
  i the first value t the second value 
Definition at line 40 of file ksortablevaluelist.h.
| KSortableItem< T, Key >::KSortableItem | ( | const KSortableItem< T, Key > & | rhs | ) |  [inline] | 
Creates a new KSortableItem that copies another one.
- Parameters:
- 
  rhs the other item to copy 
Definition at line 45 of file ksortablevaluelist.h.
| KSortableItem< T, Key >::KSortableItem | ( | ) |  [inline] | 
Creates a new KSortableItem with uninitialized values.
Definition at line 51 of file ksortablevaluelist.h.
Member Function Documentation
| Key KSortableItem< T, Key >::index | ( | ) | const  [inline] | 
| bool KSortableItem< T, Key >::operator!= | ( | const KSortableItem< T, Key > & | i2 | ) | const  [inline] | 
Compares the two items.
This implementation only compares the first value.
Definition at line 102 of file ksortablevaluelist.h.
| bool KSortableItem< T, Key >::operator< | ( | const KSortableItem< T, Key > & | i2 | ) | const  [inline] | 
Compares the two items.
This implementation only compares the first value.
Definition at line 74 of file ksortablevaluelist.h.
| bool KSortableItem< T, Key >::operator<= | ( | const KSortableItem< T, Key > & | i2 | ) | const  [inline] | 
Compares the two items.
This implementation only compares the first value.
Definition at line 88 of file ksortablevaluelist.h.
| KSortableItem<T, Key>& KSortableItem< T, Key >::operator= | ( | const KSortableItem< T, Key > & | i | ) |  [inline] | 
| bool KSortableItem< T, Key >::operator== | ( | const KSortableItem< T, Key > & | i2 | ) | const  [inline] | 
Compares the two items.
This implementation only compares the first value.
Definition at line 95 of file ksortablevaluelist.h.
| bool KSortableItem< T, Key >::operator> | ( | const KSortableItem< T, Key > & | i2 | ) | const  [inline] | 
Compares the two items.
This implementation only compares the first value.
Definition at line 67 of file ksortablevaluelist.h.
| bool KSortableItem< T, Key >::operator>= | ( | const KSortableItem< T, Key > & | i2 | ) | const  [inline] | 
Compares the two items.
This implementation only compares the first value.
Definition at line 81 of file ksortablevaluelist.h.
| const T& KSortableItem< T, Key >::value | ( | ) | const  [inline] | 
| T& KSortableItem< T, Key >::value | ( | ) |  [inline] | 
The documentation for this class was generated from the following file:
 KDE 3.5 API Reference
    KDE 3.5 API Reference