KSortableValueList Class Reference
#include <ksortablevaluelist.h>
Inheritance diagram for KSortableValueList:

Public Member Functions | |
void | insert (Key i, const T &t) |
T & | operator[] (Key i) |
const T & | operator[] (Key i) const |
void | sort () |
Detailed Description
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.
Member Function Documentation
void KSortableValueList::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.
T& KSortableValueList::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.
const T& KSortableValueList::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.
void KSortableValueList::sort | ( | ) | [inline] |
Sorts the KSortableItems.
Definition at line 162 of file ksortablevaluelist.h.
The documentation for this class was generated from the following file: