Indexed map template class. More...
#include <QtxMap.h>
Public Types | |
| typedef IMapIterator< Key, Value > | Iterator |
| typedef IMapConstIterator< Key, Value > | ConstIterator |
Public Member Functions | |
| IMap () | |
| IMap (const IMap &m) | |
| IMap & | operator= (const IMap &m) |
| int | count () const |
| int | size () const |
| bool | empty () const |
| bool | isEmpty () const |
| void | clear () |
| QList< Key > | keys () const |
| QList< Value > | values () const |
| bool | contains (const Key &key) const |
| Iterator | begin () |
| Iterator | end () |
| ConstIterator | begin () const |
| ConstIterator | end () const |
| Iterator | insert (const Key &key, const Value &value, bool overwrite=true) |
| Iterator | replace (const Key &key, const Value &value) |
| int | index (const Key &key) const |
| Iterator | at (const int index) |
| ConstIterator | at (const int index) const |
| Key & | key (const int index) |
| Value | value (const int index) |
| Value | operator[] (const Key &key) |
| const Value | operator[] (const Key &key) const |
| void | erase (Iterator it) |
| void | erase (const Key &key) |
| void | erase (const int index) |
| void | remove (Iterator it) |
| void | remove (const Key &key) |
| void | remove (const int index) |
Private Attributes | |
| QList< Key > | myKeys |
| QMap< Key, Value > | myData |
| Key | dummyKey |
| Value | dummyValue |
Friends | |
| class | IMapIterator< Key, Value > |
| class | IMapConstIterator< Key, Value > |
Indexed map template class.
| typedef IMapConstIterator<Key,Value> IMap< Key, Value >::ConstIterator |
| typedef IMapIterator<Key,Value> IMap< Key, Value >::Iterator |
References IMap< Key, Value >::index().
|
inline |
References IMap< Key, Value >::index().
|
inline |
|
inline |
References IMap< Key, Value >::myData, and IMap< Key, Value >::myKeys.
|
inline |
References IMap< Key, Value >::key(), and IMap< Key, Value >::myData.
|
inline |
References IMap< Key, Value >::myData.
|
inline |
References IMap< Key, Value >::myData.
References IMap< Key, Value >::count().
|
inline |
References IMap< Key, Value >::count().
|
inline |
References IMap< Key, Value >::index(), and IMap< Key, Value >::remove().
|
inline |
References IMap< Key, Value >::key(), and IMap< Key, Value >::remove().
References IMap< Key, Value >::remove().
|
inline |
References IMap< Key, Value >::key(), and IMap< Key, Value >::myKeys.
|
inline |
References IMap< Key, Value >::myData.
|
inline |
References IMap< Key, Value >::myKeys.
|
inline |
References IMap< Key, Value >::myData, and IMap< Key, Value >::myKeys.
|
inline |
References IMap< Key, Value >::insert(), IMap< Key, Value >::key(), and IMap< Key, Value >::myData.
|
inline |
|
inline |
References IMap< Key, Value >::index(), IMap< Key, Value >::myData, and IMap< Key, Value >::myKeys.
|
inline |
References IMap< Key, Value >::index(), IMap< Key, Value >::key(), and IMap< Key, Value >::remove().
|
inline |
References IMap< Key, Value >::myData.
|
inline |
References IMap< Key, Value >::count(), and IMap< Key, Value >::value().
|
friend |
|
friend |
|
private |
|
private |
|
private |