#include <DiskUsageCounter.h>
Public Types | |
| typedef std::set < MountPoint > | MountPointSet |
Public Member Functions | |
| DiskUsageCounter () | |
| bool | setMountPoints (const MountPointSet &m) |
| MountPointSet | getMountPoints () const |
| 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 |
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] |
| MountPointSet zypp::DiskUsageCounter::getMountPoints | ( | ) | const [inline] |
| DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::detectMountPoints | ( | const std::string & | rootdir = "/" |
) | [static] |
Definition at line 133 of file DiskUsageCounter.cc.
References DBG, zypp::str::getline(), zypp::url::split(), and WAR.
Referenced by zypp::zypp_detail::ZYppImpl::diskUsage(), and zypp::zypp_detail::ZYppImpl::getPartitions().
| DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::disk_usage | ( | const ResPool & | pool | ) |
Compute disk usage of the pool.
Definition at line 69 of file DiskUsageCounter.cc.
References zypp::addDu(), zypp::ResPool::begin(), zypp::ResPool::byNameBegin(), zypp::ResPool::byNameEnd(), zypp::delDu(), zypp::ResPool::end(), for_, and mps.
MountPointSet zypp::DiskUsageCounter::mps [private] |
Definition at line 99 of file DiskUsageCounter.h.
Referenced by disk_usage(), getMountPoints(), and setMountPoints().
1.5.3