kdecore Library API Documentation

KSortableValueList< T, Key > Class Template Reference

KSortableValueList is a special QValueList for KSortableItem. More...

#include <ksortablevaluelist.h>

Inheritance diagram for KSortableValueList< T, Key >:

QValueList< KSortableItem< T, Key > > KCompletionMatches List of all members.

Public Member Functions

void insert (Key i, const T &t)
T & operator[] (Key i)
const T & operator[] (Key i) const
void sort ()

Detailed Description

template<class T, class Key = int>
class KSortableValueList< T, Key >

KSortableValueList is a special QValueList for KSortableItem.

It includes convenience operators to get the first value of the KSortableItem and a method to sort all items.

Definition at line 129 of file ksortablevaluelist.h.


Member Function Documentation

template<class T, class Key = int>
void KSortableValueList< T, Key >::insert Key  i,
const T &  t
[inline]
 

Insert a KSortableItem with the given values.

Parameters:
i the first value
t the second value

Definition at line 137 of file ksortablevaluelist.h.

template<class T, class Key = int>
T& KSortableValueList< T, Key >::operator[] Key  i  )  [inline]
 

Returns the first value of the KSortableItem at the given position.

Returns:
the first value of the KSortableItem

Definition at line 146 of file ksortablevaluelist.h.

template<class T, class Key = int>
const T& KSortableValueList< T, Key >::operator[] Key  i  )  const [inline]
 

Returns the first value of the KSortableItem at the given position.

Returns:
the first value of the KSortableItem

Definition at line 154 of file ksortablevaluelist.h.

template<class T, class Key = int>
void KSortableValueList< T, Key >::sort  )  [inline]
 

Sorts the KSortableItems.

Definition at line 161 of file ksortablevaluelist.h.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for kdecore Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 14 09:16:14 2006 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003