KDECore
Go to the documentation of this file.
20 #ifndef KSORTABLELIST_H
21 #define KSORTABLELIST_H
25 #include <QtCore/QPair>
26 #include <QtCore/QList>
49 :
QPair<Key,
T>( rhs.first, rhs.second ) {}
60 this->first = i.first;
61 this->second = i.second;
71 return (i2.first < this->first);
77 bool operator< ( const KSortableItem<T, Key>& i2 )
const {
78 return (this->first < i2.first);
85 return (this->first >= i2.first);
91 bool operator<= ( const KSortableItem<T, Key>& i2 )
const {
92 return !(i2.first < this->first);
99 return (this->first == i2.first);
106 return (this->first != i2.first);
117 const T&
value()
const {
return this->second; }
123 #ifndef KDE_NO_DEPRECATED
124 KDE_DEPRECATED Key
index()
const {
return this->first; }
129 Key
key()
const {
return this->first; }
143 template <
typename T,
typename Key =
int>
183 template<
class T,
class K>
188 #endif // KSORTABLELIST_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Sep 23 2014 09:53:09 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.