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


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 |
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 31 of file ksortablevaluelist.h.
Constructor & Destructor Documentation
|
Creates a new KSortableItem with the given values.
|
|
Creates a new KSortableItem that copies another one.
|
|
Creates a new KSortableItem with uninitialized values. Definition at line 50 of file ksortablevaluelist.h. |
Member Function Documentation
|
Assignment operator, just copies the item. Definition at line 55 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 66 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 73 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 80 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 87 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 94 of file ksortablevaluelist.h. |
|
Compares the two items. This implementation only compares the first value. Definition at line 101 of file ksortablevaluelist.h. |
|
|
|
Returns the second value. Definition at line 113 of file ksortablevaluelist.h. |
|
|
The documentation for this class was generated from the following file: