#include <DiskUsageCounter.h>
Public Types | |
| typedef std::set< MountPoint > | MountPointSet |
Public Member Functions | |
| DiskUsageCounter () | |
| bool | setMountPoints (const MountPointSet &m) |
| MountPointSet | getMountPoints () |
| MountPointSet | disk_usage (const ResPool &pool) |
| Compute disk usage of the pool. | |
Static Public Member Functions | |
| static MountPointSet | detectMountPoints (const std::string &rootdir="/") |
Private Attributes | |
| MountPointSet | mps |
Classes | |
| struct | MountPoint |
| Mount point description. More... | |
Definition at line 25 of file DiskUsageCounter.h.
| typedef std::set<MountPoint> zypp::DiskUsageCounter::MountPointSet |
Definition at line 75 of file DiskUsageCounter.h.
| zypp::DiskUsageCounter::DiskUsageCounter | ( | ) | [inline] |
Definition at line 77 of file DiskUsageCounter.h.
| bool zypp::DiskUsageCounter::setMountPoints | ( | const MountPointSet & | m | ) | [inline] |
Definition at line 79 of file DiskUsageCounter.h.
References mps.
Referenced by zypp::zypp_detail::ZYppImpl::setPartitions().
| MountPointSet zypp::DiskUsageCounter::getMountPoints | ( | ) | [inline] |
| DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::detectMountPoints | ( | const std::string & | rootdir = "/" |
) | [static] |
Definition at line 173 of file DiskUsageCounter.cc.
References DBG, zypp::str::getline(), zypp::url::split(), and WAR.
| DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::disk_usage | ( | const ResPool & | pool | ) |
Compute disk usage of the pool.
Definition at line 31 of file DiskUsageCounter.cc.
References zypp::ResPool::byKindBegin(), zypp::ResPool::byKindEnd(), zypp::ResPool::byNameBegin(), zypp::ResPool::byNameEnd(), zypp::DiskUsage::extract(), mps, name, zypp::DiskUsage::size(), and XXX.
Referenced by zypp::zypp_detail::ZYppImpl::diskUsage().
MountPointSet zypp::DiskUsageCounter::mps [private] |
Definition at line 99 of file DiskUsageCounter.h.
Referenced by disk_usage(), getMountPoints(), and setMountPoints().
1.5.0