#include <PathInfo.h>
Public Member Functions | |
| devino_cache () | |
| void | clear () |
| bool | insert (const dev_t &dev_r, const ino_t &ino_r) |
Private Attributes | |
| std::map< dev_t, std::set< ino_t > > | _devino |
PathInfo::devino_cache trace;
for ( all files ) {
if ( trace.insert( file.device, file.inode ) ) {
// 1st occurance of file
}
// else: hardlink; already counted this device/inode
}
}
|
|
Constructor |
|
|
Clear cache |
|
||||||||||||
|
Remember dev/ino. Return |
|
|
|
1.4.4