• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kdecore

KSortableValueList< T, Key > Class Template Reference

#include <ksortablevaluelist.h>

Inheritance diagram for KSortableValueList< T, Key >:

QValueList< KSortableItem< T, Key > >

List of all members.


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 130 of file ksortablevaluelist.h.


Public Member Functions

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

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 138 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 147 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 155 of file ksortablevaluelist.h.

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

Sorts the KSortableItems.

Definition at line 162 of file ksortablevaluelist.h.


The documentation for this class was generated from the following file:
  • ksortablevaluelist.h

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal