QxtPairList< T, K > Class Template Reference
[Kit]
Searchable List of Pairs.
More...
Public Member Functions
-
QxtPairList (const QxtPairList< T, K > &other)
-
QxtPairList operator= (const QxtPairList< T, K > &other)
-
void append (T v1, K v2)
- QList< int > find (qxNull(T, v1), qxNull(K, v2))
- search entrys by match
-
void remove (int nr)
- remove an entrys position by position
-
void remove (QList< int > nrs)
- remove a list of entrys by position
Data Fields
- QList< QPair< T, K > > list
- operate on the list directly
Detailed Description
template<typename T, typename K>
class QxtPairList< T, K >
Searchable List of Pairs.
Pair list provides a list with two values, a bit like QHash, but with posibility to operate on both values.
in contrast to QHash, every entry has a unique id, you can work with. like a QList.
you may allso play around with the list itself
list.list.append(qMakePair(1,2));
Member Function Documentation
template<typename T, typename K>
QList<int> QxtPairList< T, K >::find
(
qxNull(T, v1)
,
qxNull(K, v2)
) [inline]
search entrys by match
both arguments are optional, due to the use of QxtNullable
are all valid
Field Documentation
template<typename T, typename K>
QList<QPair<T,K> > QxtPairList< T, K >::list
operate on the list directly
you may use the internal list directly, but be carefull dont expect to work the QxPairList to work normal if you mess around with it.