#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 183 of file PathInfo.h.
|
Ctor.
Definition at line 187 of file PathInfo.h. |
|
Clear cache.
Definition at line 190 of file PathInfo.h. References _devino. |
|
Remember dev/ino.
Definition at line 197 of file PathInfo.h. References _devino. |
|
Definition at line 202 of file PathInfo.h. |