KSortableItem< T, Key > Class Template Reference
#include <ksortablevaluelist.h>
Inheritance diagram for KSortableItem< T, Key >:

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.
Public Member Functions | |
KSortableItem (Key i, const T &t) | |
KSortableItem (const KSortableItem< T, Key > &rhs) | |
KSortableItem () | |
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 |
bool | operator<= (const KSortableItem< T, Key > &i2) const |
bool | operator== (const KSortableItem< T, Key > &i2) const |
bool | operator!= (const KSortableItem< T, Key > &i2) const |
T & | value () |
const T & | value () const |
Key | index () const |
Constructor & Destructor Documentation
|
Creates a new KSortableItem with the given values.
Definition at line 40 of file ksortablevaluelist.h. |
|
Creates a new KSortableItem that copies another one.
Definition at line 45 of file ksortablevaluelist.h. |
|
Creates a new KSortableItem with uninitialized values.
Definition at line 51 of file ksortablevaluelist.h. |
Member Function Documentation
|
Definition at line 119 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 102 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 74 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 88 of file ksortablevaluelist.h. |
|
Assignment operator, just copies the item.
Definition at line 56 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 95 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 67 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 81 of file ksortablevaluelist.h. |
|
Returns the second value.
Definition at line 114 of file ksortablevaluelist.h. |
|
Definition at line 109 of file ksortablevaluelist.h. |
The documentation for this class was generated from the following file: