libzypp  13.10.6
zypp::DiskUsageCounter::MountPoint Struct Reference

Mount point description. More...

#include <DiskUsageCounter.h>

Public Member Functions

 MountPoint (std::string d="/", long long bs=0LL, long long total=0LL, long long used=0LL, long long pkg=0LL, bool ro=false)
 Ctor - initialize directory and package size. More...
 
bool operator< (const MountPoint &rhs) const
 
ByteCount blockSize () const
 
ByteCount totalSize () const
 
ByteCount usedSize () const
 
ByteCount freeSize () const
 
ByteCount usedAfterCommit () const
 
ByteCount freeAfterCommit () const
 
ByteCount commitDiff () const
 

Public Attributes

std::string dir
 Directory name. More...
 
long long block_size
 Block size of the mount point. More...
 
long long total_size
 Total size in K (1024) More...
 
long long used_size
 Used size in K (1024) More...
 
long long pkg_size
 Used size after commiting the pool (in K) More...
 
bool readonly
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const DiskUsageCounter::MountPoint &obj)
 

Detailed Description

Mount point description.

Definition at line 33 of file DiskUsageCounter.h.

Constructor & Destructor Documentation

zypp::DiskUsageCounter::MountPoint::MountPoint ( std::string  d = "/",
long long  bs = 0LL,
long long  total = 0LL,
long long  used = 0LL,
long long  pkg = 0LL,
bool  ro = false 
)
inline

Ctor - initialize directory and package size.

Definition at line 65 of file DiskUsageCounter.h.

Member Function Documentation

bool zypp::DiskUsageCounter::MountPoint::operator< ( const MountPoint rhs) const
inline

Definition at line 70 of file DiskUsageCounter.h.

ByteCount zypp::DiskUsageCounter::MountPoint::blockSize ( ) const
inline

Definition at line 75 of file DiskUsageCounter.h.

ByteCount zypp::DiskUsageCounter::MountPoint::totalSize ( ) const
inline

Definition at line 78 of file DiskUsageCounter.h.

ByteCount zypp::DiskUsageCounter::MountPoint::usedSize ( ) const
inline

Definition at line 81 of file DiskUsageCounter.h.

ByteCount zypp::DiskUsageCounter::MountPoint::freeSize ( ) const
inline

Definition at line 84 of file DiskUsageCounter.h.

ByteCount zypp::DiskUsageCounter::MountPoint::usedAfterCommit ( ) const
inline

Definition at line 87 of file DiskUsageCounter.h.

ByteCount zypp::DiskUsageCounter::MountPoint::freeAfterCommit ( ) const
inline

Definition at line 90 of file DiskUsageCounter.h.

ByteCount zypp::DiskUsageCounter::MountPoint::commitDiff ( ) const
inline

Definition at line 93 of file DiskUsageCounter.h.

Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const DiskUsageCounter::MountPoint obj 
)
related

Stream output

Definition at line 296 of file DiskUsageCounter.cc.

Member Data Documentation

std::string zypp::DiskUsageCounter::MountPoint::dir

Directory name.

Definition at line 38 of file DiskUsageCounter.h.

long long zypp::DiskUsageCounter::MountPoint::block_size

Block size of the mount point.

Definition at line 43 of file DiskUsageCounter.h.

long long zypp::DiskUsageCounter::MountPoint::total_size

Total size in K (1024)

Definition at line 48 of file DiskUsageCounter.h.

long long zypp::DiskUsageCounter::MountPoint::used_size

Used size in K (1024)

Definition at line 53 of file DiskUsageCounter.h.

long long zypp::DiskUsageCounter::MountPoint::pkg_size
mutable

Used size after commiting the pool (in K)

Definition at line 58 of file DiskUsageCounter.h.

bool zypp::DiskUsageCounter::MountPoint::readonly

Definition at line 60 of file DiskUsageCounter.h.


The documentation for this struct was generated from the following file: