libzypp  13.10.6
zypp::DiskUsageCounter Class Reference

#include <DiskUsageCounter.h>

Classes

struct  MountPoint
 Mount point description. More...
 

Public Types

typedef std::set< MountPointMountPointSet
 

Public Member Functions

 DiskUsageCounter ()
 
 DiskUsageCounter (const MountPointSet &m)
 
bool setMountPoints (const MountPointSet &m)
 
const MountPointSetgetMountPoints () const
 
MountPointSet disk_usage (const ResPool &pool)
 Compute disk usage of the pool. More...
 
MountPointSet disk_usage (sat::Solvable solv_r)
 Compute disk usage of one solvable. More...
 
MountPointSet disk_usage (const PoolItem &pi_r)
 
MountPointSet disk_usage (const ResObject::constPtr &obj_r)
 

Static Public Member Functions

static MountPointSet detectMountPoints (const std::string &rootdir="/")
 
static MountPointSet justRootPartition ()
 

Private Attributes

MountPointSet mps
 

Detailed Description

Definition at line 25 of file DiskUsageCounter.h.

Member Typedef Documentation

Definition at line 97 of file DiskUsageCounter.h.

Constructor & Destructor Documentation

zypp::DiskUsageCounter::DiskUsageCounter ( )
inline

Definition at line 99 of file DiskUsageCounter.h.

zypp::DiskUsageCounter::DiskUsageCounter ( const MountPointSet m)
inline

Definition at line 102 of file DiskUsageCounter.h.

Member Function Documentation

bool zypp::DiskUsageCounter::setMountPoints ( const MountPointSet m)
inline

Definition at line 106 of file DiskUsageCounter.h.

const MountPointSet& zypp::DiskUsageCounter::getMountPoints ( ) const
inline

Definition at line 112 of file DiskUsageCounter.h.

DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::detectMountPoints ( const std::string &  rootdir = "/")
static

Definition at line 135 of file DiskUsageCounter.cc.

DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::justRootPartition ( )
static

Definition at line 289 of file DiskUsageCounter.cc.

DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::disk_usage ( const ResPool pool)

Compute disk usage of the pool.

Definition at line 108 of file DiskUsageCounter.cc.

DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::disk_usage ( sat::Solvable  solv_r)

Compute disk usage of one solvable.

Definition at line 123 of file DiskUsageCounter.cc.

MountPointSet zypp::DiskUsageCounter::disk_usage ( const PoolItem pi_r)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 131 of file DiskUsageCounter.h.

MountPointSet zypp::DiskUsageCounter::disk_usage ( const ResObject::constPtr obj_r)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 134 of file DiskUsageCounter.h.

Member Data Documentation

MountPointSet zypp::DiskUsageCounter::mps
private

Definition at line 143 of file DiskUsageCounter.h.


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