class KSortableItem

KSortableItem is a QPair that provides several operators for sorting. More...

Definition#include <ksortablevaluelist.h>
Template formKSortableItem<class T, class Key = int>
InheritsQPair (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


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:
ithe first value
tthe second value

 KSortableItem ( const KSortableItem &rhs )

KSortableItem

Creates a new KSortableItem that copies another one.

Parameters:
rhsthe other item to copy

 KSortableItem ()

KSortableItem

Creates a new KSortableItem with uninitialized values.

KSortableItemoperator= ( 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:
thefirst value


Generated by: caleb on tcdevel on Tue Jan 28 12:54:04 2003, using kdoc $.