KDECore
#include <KSortableItem>

Public Member Functions | |
KSortableItem () | |
KSortableItem (const KSortableItem< T, Key > &rhs) | |
KSortableItem (Key i, const T &t) | |
Key | index () const |
Key | key () 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 |
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 |
T & | value () |
const T & | value () const |
Detailed Description
class KSortableItem< T, Key >
KSortableItem is a QPair that provides several operators for sorting.
- See also
- KSortableList
Definition at line 35 of file ksortablelist.h.
Constructor & Destructor Documentation
◆ KSortableItem() [1/3]
|
inline |
Creates a new KSortableItem with the given values.
- Parameters
-
i the first value (the key) t the second value (the item)
Definition at line 43 of file ksortablelist.h.
◆ KSortableItem() [2/3]
|
inline |
Creates a new KSortableItem that copies another one.
- Parameters
-
rhs the other item to copy
Definition at line 48 of file ksortablelist.h.
◆ KSortableItem() [3/3]
|
inline |
Creates a new KSortableItem with uninitialized values.
Definition at line 54 of file ksortablelist.h.
Member Function Documentation
◆ index()
|
inline |
- Returns
- the first value (the key)
- Deprecated:
- use key()
Definition at line 124 of file ksortablelist.h.
◆ key()
|
inline |
- Returns
- the first value.
Definition at line 129 of file ksortablelist.h.
◆ operator!=()
|
inline |
Compares the two items.
This implementation only compares the first value.
Definition at line 105 of file ksortablelist.h.
◆ operator<()
|
inline |
Compares the two items.
This implementation only compares the first value.
Definition at line 77 of file ksortablelist.h.
◆ operator<=()
|
inline |
Compares the two items.
This implementation only compares the first value.
Definition at line 91 of file ksortablelist.h.
◆ operator=()
|
inline |
Assignment operator, just copies the item.
Definition at line 59 of file ksortablelist.h.
◆ operator==()
|
inline |
Compares the two items.
This implementation only compares the first value.
Definition at line 98 of file ksortablelist.h.
◆ operator>()
|
inline |
Compares the two items.
This implementation only compares the first value.
Definition at line 70 of file ksortablelist.h.
◆ operator>=()
|
inline |
Compares the two items.
This implementation only compares the first value.
Definition at line 84 of file ksortablelist.h.
◆ value() [1/2]
|
inline |
- Returns
- the second value (the item)
Definition at line 112 of file ksortablelist.h.
◆ value() [2/2]
|
inline |
- Returns
- the second value (the item)
Definition at line 117 of file ksortablelist.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.