#include <mymoneymap.h>
Public Member Functions | |
MyMoneyMap () | |
virtual | ~MyMoneyMap () |
void | startTransaction (unsigned long *id=0) |
void | rollbackTransaction (void) |
bool | commitTransaction (void) |
void | insert (const Key &key, const T &obj) |
void | modify (const Key &key, const T &obj) |
void | remove (const Key &key) |
MyMoneyMap< Key, T > & | operator= (const QMap< Key, T > &m) |
QValueList< T > | values (void) const |
QValueList< Key > | keys (void) const |
const T & | operator[] (const Key &k) const |
Q_TYPENAME QMap< Key, T > ::const_iterator | find (const Key &k) const |
Q_TYPENAME QMap< Key, T > ::const_iterator | begin (void) const |
Q_TYPENAME QMap< Key, T > ::const_iterator | end (void) const |
bool | contains (const Key &k) const |
void | map (QMap< Key, T > &that) const |
size_t | count (void) const |
Protected Attributes | |
QPtrStack< MyMoneyMapAction > | m_stack |
Classes | |
class | MyMoneyMapAction |
class | MyMoneyMapInsert |
class | MyMoneyMapModify |
class | MyMoneyMapRemove |
class | MyMoneyMapStart |
The implementation is based on the command pattern, in case someone is interested.
MyMoneyMap< Key, T >::MyMoneyMap | ( | ) | [inline] |
virtual MyMoneyMap< Key, T >::~MyMoneyMap | ( | ) | [inline, virtual] |
void MyMoneyMap< Key, T >::startTransaction | ( | unsigned long * | id = 0 |
) | [inline] |
void MyMoneyMap< Key, T >::rollbackTransaction | ( | void | ) | [inline] |
bool MyMoneyMap< Key, T >::commitTransaction | ( | void | ) | [inline] |
void MyMoneyMap< Key, T >::insert | ( | const Key & | key, | |
const T & | obj | |||
) | [inline] |
void MyMoneyMap< Key, T >::modify | ( | const Key & | key, | |
const T & | obj | |||
) | [inline] |
void MyMoneyMap< Key, T >::remove | ( | const Key & | key | ) | [inline] |
MyMoneyMap<Key, T>& MyMoneyMap< Key, T >::operator= | ( | const QMap< Key, T > & | m | ) | [inline] |
QValueList<T> MyMoneyMap< Key, T >::values | ( | void | ) | const [inline] |
QValueList<Key> MyMoneyMap< Key, T >::keys | ( | void | ) | const [inline] |
const T& MyMoneyMap< Key, T >::operator[] | ( | const Key & | k | ) | const [inline] |
Q_TYPENAME QMap<Key, T>::const_iterator MyMoneyMap< Key, T >::find | ( | const Key & | k | ) | const [inline] |
Q_TYPENAME QMap<Key, T>::const_iterator MyMoneyMap< Key, T >::begin | ( | void | ) | const [inline] |
Q_TYPENAME QMap<Key, T>::const_iterator MyMoneyMap< Key, T >::end | ( | void | ) | const [inline] |
bool MyMoneyMap< Key, T >::contains | ( | const Key & | k | ) | const [inline] |
void MyMoneyMap< Key, T >::map | ( | QMap< Key, T > & | that | ) | const [inline] |
size_t MyMoneyMap< Key, T >::count | ( | void | ) | const [inline] |
QPtrStack<MyMoneyMapAction> MyMoneyMap< Key, T >::m_stack [protected] |