zypp::DiskUsageCounter::MountPoint Struct Reference

Mount point description. More...

#include <DiskUsageCounter.h>

List of all members.

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.
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.
long long block_size
 Block size of the mount point.
long long total_size
 Total size in K (1024).
long long used_size
 Used size in K (1024).
long long pkg_size
 Used size after commiting the pool (in K).
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.

References dir.

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

Definition at line 75 of file DiskUsageCounter.h.

References zypp::ByteCount::B, and block_size.

Referenced by zypp::operator<<().

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

Definition at line 78 of file DiskUsageCounter.h.

References zypp::ByteCount::K, and total_size.

Referenced by zypp::operator<<().

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

Definition at line 81 of file DiskUsageCounter.h.

References zypp::ByteCount::K, and used_size.

Referenced by zypp::operator<<().

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

Definition at line 84 of file DiskUsageCounter.h.

References zypp::ByteCount::K, total_size, and used_size.

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

Definition at line 87 of file DiskUsageCounter.h.

References zypp::ByteCount::K, and pkg_size.

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

Definition at line 90 of file DiskUsageCounter.h.

References zypp::ByteCount::K, pkg_size, and total_size.

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

Definition at line 93 of file DiskUsageCounter.h.

References zypp::ByteCount::K, pkg_size, and used_size.

Referenced by zypp::operator<<().


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

Directory name.

Definition at line 38 of file DiskUsageCounter.h.

Referenced by operator<(), and zypp::operator<<().

Block size of the mount point.

Definition at line 43 of file DiskUsageCounter.h.

Referenced by blockSize().

Total size in K (1024).

Definition at line 48 of file DiskUsageCounter.h.

Referenced by freeAfterCommit(), freeSize(), and totalSize().

Used size in K (1024).

Definition at line 53 of file DiskUsageCounter.h.

Referenced by commitDiff(), freeSize(), and usedSize().

Used size after commiting the pool (in K).

Definition at line 58 of file DiskUsageCounter.h.

Referenced by commitDiff(), freeAfterCommit(), and usedAfterCommit().

Definition at line 60 of file DiskUsageCounter.h.


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

doxygen