#include <PathInfo.h>
Public Member Functions | |
DevInoCache () | |
Ctor. | |
void | clear () |
Clear cache. | |
bool | insert (const dev_t &dev_r, const ino_t &ino_r) |
Remember dev/ino. | |
Private Attributes | |
std::map< dev_t, std::set < ino_t > > | _devino |
DevInoCache trace; for ( all files ) { if ( trace.insert( file.device, file.inode ) ) { // 1st occurance of file } // else: hardlink; already counted this device/inode } }
Definition at line 185 of file PathInfo.h.
zypp::filesystem::DevInoCache::DevInoCache | ( | ) | [inline] |
void zypp::filesystem::DevInoCache::clear | ( | ) | [inline] |
bool zypp::filesystem::DevInoCache::insert | ( | const dev_t & | dev_r, | |
const ino_t & | ino_r | |||
) | [inline] |
Remember dev/ino.
true
if it's inserted the first time, false
if alredy present in cache (a hardlink to a previously remembered file).
Definition at line 199 of file PathInfo.h.
References _devino.
Referenced by zypp::target::rpm::RpmHeader::tag_du().
std::map<dev_t,std::set<ino_t> > zypp::filesystem::DevInoCache::_devino [private] |