class KSortableItem

# class KSortableItem | KSortableItem is a QPair that provides several operators for sorting. More...
Definition | `#include <ksortablevaluelist.h>`
Template form | KSortableItem<class T, class Key = int>
Inherits | QPair (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KSortableItem ( Key i, const T& t )
- KSortableItem ( const KSortableItem &rhs )
- KSortableItem ()
- KSortableItem & operator= ( const KSortableItem& i )
- bool operator> ( const KSortableItem& i2 ) const
- bool operator< ( const KSortableItem& i2 ) const
- bool operator>= ( const KSortableItem& i2 ) const
- bool operator<= ( const KSortableItem& i2 ) const
- bool operator== ( const KSortableItem& i2 ) const
- bool operator!= ( const KSortableItem& i2 ) const
- T& value ()
- const T& value () const
- Key index () const

## Detailed Description

KSortableItem is a QPair that provides several operators for sorting.

See also: KSortableValueList

KSortableItem ( Key i, const T& t ) | ### KSortableItem

Creates a new KSortableItem with the given values.

Parameters:

i | the first value
t | the second value

KSortableItem ( const KSortableItem &rhs ) | ### KSortableItem

Creates a new KSortableItem that copies another one.

Parameters:

rhs | the other item to copy

KSortableItem () | ### KSortableItem

Creates a new KSortableItem with uninitialized values.

KSortableItem & operator= ( const KSortableItem& i ) | ### operator=

Assignment operator, just copies the item.

bool operator> ( const KSortableItem& i2 ) | ### operator>

[const]

Compares the two items. This implementation only compares the first value.

bool operator< ( const KSortableItem& i2 ) | ### operator<

[const]

Compares the two items. This implementation only compares the first value.

bool operator>= ( const KSortableItem& i2 ) | ### operator>=

[const]

Compares the two items. This implementation only compares the first value.

bool operator<= ( const KSortableItem& i2 ) | ### operator<=

[const]

Compares the two items. This implementation only compares the first value.

bool operator== ( const KSortableItem& i2 ) | ### operator==

[const]

Compares the two items. This implementation only compares the first value.

bool operator!= ( const KSortableItem& i2 ) | ### operator!=

[const]

Compares the two items. This implementation only compares the first value.

T& value () | ### value

Returns the second value.

Returns: the second value

const T& value () | ### value

[const]

Returns the second value.

Key index () | ### index

[const]

Returns the first value.

Parameters:

the | first value

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.