MyMoneyBalanceCacheItem Class Reference

#include <mymoneyseqaccessmgr.h>

Collaboration diagram for MyMoneyBalanceCacheItem:

Collaboration graph

List of all members.

Public Member Functions

 MyMoneyBalanceCacheItem ()
 MyMoneyBalanceCacheItem (const MyMoneyMoney &val)
bool operator== (const MyMoneyBalanceCacheItem &right) const

Public Attributes

bool valid
MyMoneyMoney balance

Detailed Description

Thomas Baumgart This member represents an item in the balance cache. The balance cache is used for fast processing of the balance of an account. Several of these objects are held by the MyMoneySeqAccessMgr() object in a map with the account Id as key. If such a cache item is present in the map, the contained balance of it will be used as current balance for this account. If the balance is changed by any operation, the MyMoneyBalanceCacheItem for the modified account will be removed from the map and the next time the balance for this account is requested, it has to be recalculated. After recalculation, a new MyMoneyBalanceCacheItem will be created containing the new balance value.
See also:
MyMoneySeqAccessMgr::balance() and MyMoneySeqAccessMgr::invalidateBalanceCache() for a usage example

Constructor & Destructor Documentation

MyMoneyBalanceCacheItem::MyMoneyBalanceCacheItem (  )  [inline]

MyMoneyBalanceCacheItem::MyMoneyBalanceCacheItem ( const MyMoneyMoney val  )  [inline]

Member Function Documentation

bool MyMoneyBalanceCacheItem::operator== ( const MyMoneyBalanceCacheItem right  )  const

Member Data Documentation

The documentation for this class was generated from the following file:

Generated on Wed Jan 26 13:09:11 2011 for KMyMoney by  doxygen 1.5.6