#include <kpteffortcostmap.h>
Public Member Functions | |
| EffortCostMap () | |
| ~EffortCostMap () | |
| EffortCost | effortCost (const QDate &date) const |
| void | insert (const QDate &date, const Duration &effort, const double cost) |
| EffortCost & | add (const QDate &date, const Duration &effort, const double cost) |
| EffortCost & | add (const QDate &date, const EffortCost &ec) |
| bool | isEmpty () const |
| EffortCostDayMap | days () const |
| EffortCostMap & | operator+= (const EffortCostMap &ec) |
| EffortCost & | effortCostOnDate (const QDate &date) |
| double | cost (const QDate &date, int num=7) |
| Return total cost for the next num days starting at date. | |
| double | costOnDate (const QDate &date) const |
| Duration | effortOnDate (const QDate &date) const |
| double | totalCost () const |
| Duration | totalEffort () const |
Private Member Functions | |
| EffortCost & | zero () |
Private Attributes | |
| EffortCost | m_zero |
| EffortCostDayMap | m_days |
Definition at line 64 of file kpteffortcostmap.h.
| KPlato::EffortCostMap::EffortCostMap | ( | ) | [inline] |
Definition at line 67 of file kpteffortcostmap.h.
| KPlato::EffortCostMap::~EffortCostMap | ( | ) | [inline] |
| EffortCost KPlato::EffortCostMap::effortCost | ( | const QDate & | date | ) | const [inline] |
| void KPlato::EffortCostMap::insert | ( | const QDate & | date, | |
| const Duration & | effort, | |||
| const double | cost | |||
| ) | [inline] |
| EffortCost& KPlato::EffortCostMap::add | ( | const QDate & | date, | |
| const Duration & | effort, | |||
| const double | cost | |||
| ) | [inline] |
If data for this date already exists add the new values to the old, else the new values are inserted.
Definition at line 98 of file kpteffortcostmap.h.
Referenced by operator+=(), KPlato::Accounts::plannedCost(), and KPlato::Appointment::plannedPrDay().
| EffortCost& KPlato::EffortCostMap::add | ( | const QDate & | date, | |
| const EffortCost & | ec | |||
| ) | [inline] |
If data for this date already exists add the new values to the old, else the new value is inserted.
Definition at line 105 of file kpteffortcostmap.h.
| bool KPlato::EffortCostMap::isEmpty | ( | ) | const [inline] |
| EffortCostDayMap KPlato::EffortCostMap::days | ( | ) | const [inline] |
| EffortCostMap& KPlato::EffortCostMap::operator+= | ( | const EffortCostMap & | ec | ) | [inline] |
| EffortCost& KPlato::EffortCostMap::effortCostOnDate | ( | const QDate & | date | ) | [inline] |
| double KPlato::EffortCostMap::cost | ( | const QDate & | date, | |
| int | num = 7 | |||
| ) | [inline] |
Return total cost for the next num days starting at date.
Definition at line 139 of file kpteffortcostmap.h.
References costOnDate().
Referenced by costOnDate(), KPlato::AccountsView::slotUpdate(), and totalCost().
| double KPlato::EffortCostMap::costOnDate | ( | const QDate & | date | ) | const [inline] |
Definition at line 146 of file kpteffortcostmap.h.
References cost(), and m_days.
Referenced by cost().
| Duration KPlato::EffortCostMap::effortOnDate | ( | const QDate & | date | ) | const [inline] |
Definition at line 156 of file kpteffortcostmap.h.
References m_days, and KPlato::Duration::zeroDuration.
Referenced by KPlato::TaskAppointmentsView::slotUpdate(), and KPlato::ResourceAppointmentsView::slotUpdate().
| double KPlato::EffortCostMap::totalCost | ( | ) | const [inline] |
| Duration KPlato::EffortCostMap::totalEffort | ( | ) | const [inline] |
| EffortCost& KPlato::EffortCostMap::zero | ( | ) | [inline, private] |
EffortCost KPlato::EffortCostMap::m_zero [private] |
Definition at line 188 of file kpteffortcostmap.h.
Referenced by add(), costOnDate(), days(), effortCost(), effortCostOnDate(), effortOnDate(), insert(), isEmpty(), operator+=(), totalCost(), totalEffort(), and ~EffortCostMap().
1.5.1-p1