#include <DiskUsage.h>
Public Member Functions | |
Entry () | |
Entry (const std::string &path_r, const unsigned size_r=0, const unsigned files_r=0) | |
bool | operator== (const Entry &rhs) const |
Test for equality based on directory name. | |
bool | operator< (const Entry &rhs) const |
Order based on directory name. | |
bool | isBelow (const Entry &rhs) const |
Return true if this entry denotes a directory equal to or below rhs._dirname. | |
bool | isBelow (const std::string &dirname_r) const |
Return true if this entry denotes a directory equal to or below dirname_r. | |
const Entry & | operator+= (const Entry &rhs) const |
Numerical operation based on size and files values. | |
const Entry & | operator-= (const Entry &rhs) const |
Numerical operation based on size and files values. | |
Public Attributes | |
std::string | path |
unsigned | _size |
unsigned | _files |
Friends | |
std::ostream & | operator<< (std::ostream &str, const Entry &obj) |
Definition at line 27 of file DiskUsage.h.
zypp::DiskUsage::Entry::Entry | ( | ) | [inline] |
zypp::DiskUsage::Entry::Entry | ( | const std::string & | path_r, | |
const unsigned | size_r = 0 , |
|||
const unsigned | files_r = 0 | |||
) | [inline] |
bool zypp::DiskUsage::Entry::operator== | ( | const Entry & | rhs | ) | const [inline] |
Test for equality based on directory name.
Definition at line 48 of file DiskUsage.h.
References path.
bool zypp::DiskUsage::Entry::operator< | ( | const Entry & | rhs | ) | const [inline] |
bool zypp::DiskUsage::Entry::isBelow | ( | const Entry & | rhs | ) | const [inline] |
Return true if this entry denotes a directory equal to or below rhs._dirname.
Definition at line 60 of file DiskUsage.h.
References path.
Referenced by zypp::DiskUsage::extract(), and isBelow().
bool zypp::DiskUsage::Entry::isBelow | ( | const std::string & | dirname_r | ) | const [inline] |
Return true if this entry denotes a directory equal to or below dirname_r.
Definition at line 67 of file DiskUsage.h.
std::ostream& operator<< | ( | std::ostream & | str, | |
const Entry & | obj | |||
) | [friend] |
Definition at line 20 of file DiskUsage.cc.
std::string zypp::DiskUsage::Entry::path |
Definition at line 41 of file DiskUsage.h.
Referenced by Entry(), isBelow(), operator<(), zypp::operator<<(), operator==(), and zypp::target::rpm::RpmHeader::tag_du().
unsigned zypp::DiskUsage::Entry::_size [mutable] |
Definition at line 42 of file DiskUsage.h.
Referenced by zypp::DiskUsage::extract(), operator+=(), operator-=(), and zypp::operator<<().
unsigned zypp::DiskUsage::Entry::_files [mutable] |
Definition at line 43 of file DiskUsage.h.
Referenced by zypp::DiskUsage::extract(), operator+=(), operator-=(), and zypp::operator<<().