.TH "KSortableItem" 3 "28 Jan 2004" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KSortableItem \- KSortableItem is a \fBQPair\fP that provides several operators for sorting.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <ksortablevaluelist.h>\fP
.PP
Inherits \fBQPair< Key, T >\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKSortableItem\fP (Key i, const  T &t)"
.br
.RI "\fICreates a new KSortableItem with the given values. \fP"
.ti -1c
.RI "\fBKSortableItem\fP (const  \fBKSortableItem\fP< T, Key > &rhs)"
.br
.RI "\fICreates a new KSortableItem that copies another one. \fP"
.ti -1c
.RI "\fBKSortableItem\fP ()"
.br
.RI "\fICreates a new KSortableItem with uninitialized values. \fP"
.ti -1c
.RI "\fBKSortableItem\fP< T, Key > & \fBoperator=\fP (const  \fBKSortableItem\fP< T, Key > &i)"
.br
.RI "\fIAssignment operator, just copies the item. \fP"
.ti -1c
.RI "bool \fBoperator>\fP (const  \fBKSortableItem\fP< T, Key > &i2) const "
.br
.RI "\fICompares the two items. \fP"
.ti -1c
.RI "bool \fBoperator<\fP (const  \fBKSortableItem\fP< T, Key > &i2) const "
.br
.RI "\fICompares the two items. \fP"
.ti -1c
.RI "bool \fBoperator>=\fP (const  \fBKSortableItem\fP< T, Key > &i2) const "
.br
.RI "\fICompares the two items. \fP"
.ti -1c
.RI "bool \fBoperator<=\fP (const  \fBKSortableItem\fP< T, Key > &i2) const "
.br
.RI "\fICompares the two items. \fP"
.ti -1c
.RI "bool \fBoperator==\fP (const  \fBKSortableItem\fP< T, Key > &i2) const "
.br
.RI "\fICompares the two items. \fP"
.ti -1c
.RI "bool \fBoperator!=\fP (const  \fBKSortableItem\fP< T, Key > &i2) const "
.br
.RI "\fICompares the two items. \fP"
.ti -1c
.RI "T & \fBvalue\fP ()"
.br
.RI "\fIReturns the second value. \fP"
.ti -1c
.RI "const  T & \fBvalue\fP () const "
.br
.RI "\fIReturns the second value. \fP"
.ti -1c
.RI "Key \fBindex\fP () const "
.br
.RI "\fIReturns the first value. \fP"
.in -1c
.SH "Detailed Description"
.PP 

.SS "template<class T, class Key = int> class KSortableItem< T, Key >"
KSortableItem is a \fBQPair\fP that provides several operators for sorting. 

\fBSee also:\fP
.RS 4
\fBKSortableValueList\fP 
.RE
.PP

.PP
Definition at line 31 of file ksortablevaluelist.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "template<class T, class Key = int> \fBKSortableItem\fP< T, Key >::\fBKSortableItem\fP (Key i, const T & t)\fC [inline]\fP"
.PP
Creates a new KSortableItem with the given values. \fBParameters:\fP
.RS 4
\fIi\fP the first value 
.br
\fIt\fP the second value 
.RE
.PP
Definition at line 39 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> \fBKSortableItem\fP< T, Key >::\fBKSortableItem\fP (const \fBKSortableItem\fP< T, Key > & rhs)\fC [inline]\fP"
.PP
Creates a new KSortableItem that copies another one. \fBParameters:\fP
.RS 4
\fIrhs\fP the other item to copy 
.RE
.PP
Definition at line 44 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> \fBKSortableItem\fP< T, Key >::\fBKSortableItem\fP ()\fC [inline]\fP"
.PP
Creates a new KSortableItem with uninitialized values. Definition at line 50 of file ksortablevaluelist.h.
.SH "Member Function Documentation"
.PP 
.SS "template<class T, class Key = int> \fBKSortableItem\fP<T, Key>& \fBKSortableItem\fP< T, Key >::operator= (const \fBKSortableItem\fP< T, Key > & i)\fC [inline]\fP"
.PP
Assignment operator, just copies the item. Definition at line 55 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> bool \fBKSortableItem\fP< T, Key >::operator> (const \fBKSortableItem\fP< T, Key > & i2) const\fC [inline]\fP"
.PP
Compares the two items. This implementation only compares the first value. Definition at line 66 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> bool \fBKSortableItem\fP< T, Key >::operator< (const \fBKSortableItem\fP< T, Key > & i2) const\fC [inline]\fP"
.PP
Compares the two items. This implementation only compares the first value. Definition at line 73 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> bool \fBKSortableItem\fP< T, Key >::operator>= (const \fBKSortableItem\fP< T, Key > & i2) const\fC [inline]\fP"
.PP
Compares the two items. This implementation only compares the first value. Definition at line 80 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> bool \fBKSortableItem\fP< T, Key >::operator<= (const \fBKSortableItem\fP< T, Key > & i2) const\fC [inline]\fP"
.PP
Compares the two items. This implementation only compares the first value. Definition at line 87 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> bool \fBKSortableItem\fP< T, Key >::operator== (const \fBKSortableItem\fP< T, Key > & i2) const\fC [inline]\fP"
.PP
Compares the two items. This implementation only compares the first value. Definition at line 94 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> bool \fBKSortableItem\fP< T, Key >::operator!= (const \fBKSortableItem\fP< T, Key > & i2) const\fC [inline]\fP"
.PP
Compares the two items. This implementation only compares the first value. Definition at line 101 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> T& \fBKSortableItem\fP< T, Key >::value ()\fC [inline]\fP"
.PP
Returns the second value. \fBReturns:\fP
.RS 4
the second value 
.RE
.PP
Definition at line 109 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> const T& \fBKSortableItem\fP< T, Key >::value () const\fC [inline]\fP"
.PP
Returns the second value. Definition at line 114 of file ksortablevaluelist.h.
.SS "template<class T, class Key = int> Key \fBKSortableItem\fP< T, Key >::index () const\fC [inline]\fP"
.PP
Returns the first value. \fBParameters:\fP
.RS 4
\fIthe\fP first value 
.RE
.PP
Definition at line 120 of file ksortablevaluelist.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
