sort

KSortableValueList(3)      Library Functions Manual      KSortableValueList(3)



NAME
       KSortableValueList - KSortableValueList is a special QValueList for
       KSortableItem.


SYNOPSIS
       #include <ksortablevaluelist.h>

       Inherits QValueList< KSortableItem< T, Key > >.

       Inherited by KCompletionMatches.

   Public Member Functions
       void insert (Key i, const  T &t)
           Insert a KSortableItem with the given values.
       T & operator[] (Key i)
           Returns the first value of the KSortableItem at the given position.
       const  T & operator[] (Key i) const
           Returns the first value of the KSortableItem at the given position.
       void sort ()
           Sorts the KSortableItems.

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 131 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 139 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 148 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 156 of file ksortablevaluelist.h.

   template<class T, class Key = int> void KSortableValueList< T, Key >::sort
       () [inline]
       Sorts the KSortableItems. Definition at line 163 of file
       ksortablevaluelist.h.


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




kdecore Library                   28 Jan 2004            KSortableValueList(3)