PkgDuMaster Class Reference
PMPackageManager helper to collect disk usage info.
More...
#include <PkgDu.h>
List of all members.
Detailed Description
PMPackageManager helper to collect disk usage info.
The per package diskusage calculation perdormed by PkgDuSlave is based on the set of mountpoint data held within the PkgDuMaster.
Asserted: The set of MountPoints is alphabetically ordered by MountPoint::_mountpoint.
Asserted: Whenever the set of MountPoints changes (add/remove mountpoints or changing a mountpoints _blocksize value), PkgDuMaster::_count must be incremented.
Constructor & Destructor Documentation
| PkgDuMaster::PkgDuMaster |
( |
|
) |
|
|
| PkgDuMaster::~PkgDuMaster |
( |
|
) |
|
|
Member Function Documentation
| void PkgDuMaster::add |
( |
FSize * |
data_r |
) |
[private] |
|
| void PkgDuMaster::addSrcPkgs |
( |
const FSize & |
srcSize_r |
) |
|
|
|
|
Add size of source packages to install |
| const std::set<MountPoint>& PkgDuMaster::mountpoints |
( |
|
) |
const [inline] |
|
|
|
Return the set of mountoints. |
| void PkgDuMaster::newcount |
( |
|
) |
[private] |
|
| FSize PkgDuMaster::pkg_diff |
( |
|
) |
const [inline] |
|
|
|
Total pkg_diff (summ of all partitions) |
| unsigned PkgDuMaster::resetStats |
( |
|
) |
|
|
|
|
Reset package usage to 0 for all mounpoints. Returns the number of mountoints currently stored. |
| void PkgDuMaster::setMountPoints |
( |
const std::set< MountPoint > & |
mountpoints_r |
) |
|
|
|
|
Set a new set of mountpoints. |
| void PkgDuMaster::sub |
( |
FSize * |
data_r |
) |
[private] |
|
|
|
Subtract per package data stored within a PkgDuSlave. |
| unsigned PkgDuMaster::sync_count |
( |
|
) |
const [inline] |
|
Friends And Related Function Documentation
| std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const std::set< MountPoint > & |
obj |
|
) |
[friend] |
|
| std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const PkgDuMaster & |
obj |
|
) |
[friend] |
|
Member Data Documentation
|
|
Asserted: Incremented whenever vital mountpoint data change. |
|
|
Mountpoint of partition where src packages are installed |
The documentation for this class was generated from the following files:
Generated on Mon Sep 12 21:52:14 2005 for yast2-packagemanager by
1.4.4