#include <DiskUsage.h>
|
struct | Entry |
| Holds data about how much space will be needed per directory. More...
|
|
|
| DiskUsage () |
|
void | add (const Entry &newent_r) |
| Add an entry.
|
|
void | add (const std::string &dirname_r, const unsigned &size_r=0, const unsigned &files_r=0) |
| Add an entry.
|
|
bool | empty () const |
| Whether there is no entry available.
|
|
unsigned | size () const |
| Number of entries.
|
|
void | clear () |
| Clear EntrySet.
|
|
Entry | extract (const std::string &dirname_r) |
| Sum up any entries for dirname_r and its descendants and remove them on the fly.
|
|
iterator | begin () |
| Forward iterator pointing to the first entry (if any)
|
|
iterator | end () |
| Forward iterator pointing behind the last entry.
|
|
reverse_iterator | rbegin () |
| Reverse iterator pointing to the last entry (if any)
|
|
reverse_iterator | rend () |
| Reverse iterator pointing before the first entry.
|
|
const_iterator | begin () const |
| Forward const iterator pointing to the first entry (if any)
|
|
const_iterator | end () const |
| Forward const iterator pointing behind the last entry.
|
|
const_reverse_iterator | rbegin () const |
| Reverse const iterator pointing to the last entry (if any)
|
|
const_reverse_iterator | rend () const |
| Reverse const iterator pointing before the first entry.
|
|
Definition at line 22 of file DiskUsage.h.
zypp::DiskUsage::DiskUsage |
( |
| ) |
|
|
inline |
void zypp::DiskUsage::add |
( |
const Entry & |
newent_r | ) |
|
|
inline |
Add an entry.
If already present, sum up the new entries size and files value.
Definition at line 97 of file DiskUsage.h.
void zypp::DiskUsage::add |
( |
const std::string & |
dirname_r, |
|
|
const unsigned & |
size_r = 0 , |
|
|
const unsigned & |
files_r = 0 |
|
) |
| |
|
inline |
Add an entry.
If already present, sum up the new entries size and files value.
Definition at line 106 of file DiskUsage.h.
bool zypp::DiskUsage::empty |
( |
| ) |
const |
|
inline |
Whether there is no entry available.
Definition at line 112 of file DiskUsage.h.
unsigned zypp::DiskUsage::size |
( |
| ) |
const |
|
inline |
void zypp::DiskUsage::clear |
( |
| ) |
|
|
inline |
Sum up any entries for dirname_r and its descendants and remove them on the fly.
Return the result.
Definition at line 25 of file DiskUsage.cc.
Forward iterator pointing to the first entry (if any)
Definition at line 135 of file DiskUsage.h.
Forward iterator pointing behind the last entry.
Definition at line 139 of file DiskUsage.h.
Reverse iterator pointing to the last entry (if any)
Definition at line 143 of file DiskUsage.h.
Reverse iterator pointing before the first entry.
Definition at line 147 of file DiskUsage.h.
Forward const iterator pointing to the first entry (if any)
Definition at line 155 of file DiskUsage.h.
Forward const iterator pointing behind the last entry.
Definition at line 159 of file DiskUsage.h.
Reverse const iterator pointing to the last entry (if any)
Definition at line 163 of file DiskUsage.h.
Reverse const iterator pointing before the first entry.
Definition at line 167 of file DiskUsage.h.
std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const DiskUsage & |
obj |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files: