• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

Public Member Functions | List of all members
KSortableItem< T, Key > Class Template Reference

#include <ksortablevaluelist.h>

Inherits TQPair< Key, T >.

Public Member Functions

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

Detailed Description

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

KSortableItem is a TQPair that provides several operators for sorting.

See Also
KSortableValueList

Definition at line 32 of file ksortablevaluelist.h.

Constructor & Destructor Documentation

template<class T, class Key = int>
KSortableItem< T, Key >::KSortableItem ( Key  i,
const T &  t 
)
inline

Creates a new KSortableItem with the given values.

Parameters
ithe first value
tthe second value

Definition at line 40 of file ksortablevaluelist.h.

template<class T, class Key = int>
KSortableItem< T, Key >::KSortableItem ( const KSortableItem< T, Key > &  rhs)
inline

Creates a new KSortableItem that copies another one.

Parameters
rhsthe other item to copy

Definition at line 45 of file ksortablevaluelist.h.

template<class T, class Key = int>
KSortableItem< T, Key >::KSortableItem ( )
inline

Creates a new KSortableItem with uninitialized values.

Definition at line 51 of file ksortablevaluelist.h.

Member Function Documentation

template<class T, class Key = int>
Key KSortableItem< T, Key >::index ( ) const
inline
Returns
the first value.

Definition at line 119 of file ksortablevaluelist.h.

template<class T, class Key = int>
bool KSortableItem< T, Key >::operator!= ( const KSortableItem< T, Key > &  i2) const
inline

Compares the two items.

This implementation only compares the first value.

Definition at line 102 of file ksortablevaluelist.h.

template<class T, class Key = int>
bool KSortableItem< T, Key >::operator< ( const KSortableItem< T, Key > &  i2) const
inline

Compares the two items.

This implementation only compares the first value.

Definition at line 74 of file ksortablevaluelist.h.

template<class T, class Key = int>
bool KSortableItem< T, Key >::operator<= ( const KSortableItem< T, Key > &  i2) const
inline

Compares the two items.

This implementation only compares the first value.

Definition at line 88 of file ksortablevaluelist.h.

template<class T, class Key = int>
KSortableItem<T, Key>& KSortableItem< T, Key >::operator= ( const KSortableItem< T, Key > &  i)
inline

Assignment operator, just copies the item.

Definition at line 56 of file ksortablevaluelist.h.

template<class T, class Key = int>
bool KSortableItem< T, Key >::operator== ( const KSortableItem< T, Key > &  i2) const
inline

Compares the two items.

This implementation only compares the first value.

Definition at line 95 of file ksortablevaluelist.h.

template<class T, class Key = int>
bool KSortableItem< T, Key >::operator> ( const KSortableItem< T, Key > &  i2) const
inline

Compares the two items.

This implementation only compares the first value.

Definition at line 67 of file ksortablevaluelist.h.

template<class T, class Key = int>
bool KSortableItem< T, Key >::operator>= ( const KSortableItem< T, Key > &  i2) const
inline

Compares the two items.

This implementation only compares the first value.

Definition at line 81 of file ksortablevaluelist.h.

template<class T, class Key = int>
T& KSortableItem< T, Key >::value ( )
inline
Returns
the second value

Definition at line 109 of file ksortablevaluelist.h.

template<class T, class Key = int>
const T& KSortableItem< T, Key >::value ( ) const
inline

Returns the second value.

Definition at line 114 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

kdecore

Skip menu "kdecore"
  • 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
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |