libzypp  13.10.6
zypp::DiskUsage::Entry Struct Reference

Holds data about how much space will be needed per directory. More...

#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. More...
 
bool operator< (const Entry &rhs) const
 Order based on directory name. More...
 
bool isBelow (const Entry &rhs) const
 Return true if this entry denotes a directory equal to or below rhs._dirname. More...
 
bool isBelow (const std::string &dirname_r) const
 Return true if this entry denotes a directory equal to or below dirname_r. More...
 
const Entryoperator+= (const Entry &rhs) const
 Numerical operation based on size and files values. More...
 
const Entryoperator-= (const Entry &rhs) const
 Numerical operation based on size and files values. More...
 

Public Attributes

std::string path
 
unsigned _size
 
unsigned _files
 

Friends

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

Detailed Description

Holds data about how much space will be needed per directory.

Definition at line 27 of file DiskUsage.h.

Constructor & Destructor Documentation

zypp::DiskUsage::Entry::Entry ( )
inline

Definition at line 28 of file DiskUsage.h.

zypp::DiskUsage::Entry::Entry ( const std::string &  path_r,
const unsigned  size_r = 0,
const unsigned  files_r = 0 
)
inline

Definition at line 29 of file DiskUsage.h.

Member Function Documentation

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.

bool zypp::DiskUsage::Entry::operator< ( const Entry rhs) const
inline

Order based on directory name.

Definition at line 54 of file DiskUsage.h.

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.

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.

const Entry& zypp::DiskUsage::Entry::operator+= ( const Entry rhs) const
inline

Numerical operation based on size and files values.

Definition at line 74 of file DiskUsage.h.

const Entry& zypp::DiskUsage::Entry::operator-= ( const Entry rhs) const
inline

Numerical operation based on size and files values.

Definition at line 82 of file DiskUsage.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const Entry obj 
)
friend

Definition at line 20 of file DiskUsage.cc.

Member Data Documentation

std::string zypp::DiskUsage::Entry::path

Definition at line 41 of file DiskUsage.h.

unsigned zypp::DiskUsage::Entry::_size
mutable

Definition at line 42 of file DiskUsage.h.

unsigned zypp::DiskUsage::Entry::_files
mutable

Definition at line 43 of file DiskUsage.h.


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