zypp::DiskUsage::Entry Struct Reference

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

#include <DiskUsage.h>

List of all members.

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 Entryoperator= (const Entry &rhs) const
const Entryoperator+= (const Entry &rhs) const
 Numerical operation based on size and files values.
const Entryoperator-= (const Entry &rhs) const
 Numerical operation based on size and files values.

Public Attributes

const 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.

Referenced by isBelow().

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 41 of file DiskUsage.h.

References path.

bool zypp::DiskUsage::Entry::operator< const Entry rhs  )  const [inline]
 

Order based on directory name.

Definition at line 47 of file DiskUsage.h.

References path.

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 53 of file DiskUsage.h.

References path.

Referenced by 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 60 of file DiskUsage.h.

References Entry(), and isBelow().

const Entry& zypp::DiskUsage::Entry::operator= const Entry rhs  )  const [inline]
 

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 73 of file DiskUsage.h.

References _files, and _size.

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

Numerical operation based on size and files values.

Definition at line 81 of file DiskUsage.h.

References _files, and _size.


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

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

Definition at line 34 of file DiskUsage.h.

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

unsigned zypp::DiskUsage::Entry::_size [mutable]
 

Definition at line 35 of file DiskUsage.h.

Referenced by zypp::DiskUsage::extract(), operator+=(), operator-=(), and zypp::operator<<().

unsigned zypp::DiskUsage::Entry::_files [mutable]
 

Definition at line 36 of file DiskUsage.h.

Referenced by zypp::DiskUsage::extract(), operator+=(), operator-=(), and zypp::operator<<().


The documentation for this struct was generated from the following file:
Generated on Thu Jul 6 00:07:30 2006 for zypp by  doxygen 1.4.6