|
Fray Engine
|
Filesystem identity surviving renames: device and inode, or volume and file index. More...
#include <file_watcher.hpp>
Public Member Functions | |
| bool | valid () const |
| Returns whether either identity component is nonzero. | |
| bool | operator== (const FileId &other) const |
| Tests two identities for equality. | |
| bool | operator!= (const FileId &other) const |
| Tests two identities for inequality. | |
| bool | operator< (const FileId &other) const |
| Orders identities by device and then index. | |
Public Attributes | |
| std::uint64_t | device = 0 |
| Device number or volume serial number. | |
| std::uint64_t | index = 0 |
| Inode number or file index. | |
Filesystem identity surviving renames: device and inode, or volume and file index.
Definition at line 36 of file file_watcher.hpp.
|
inline |
Tests two identities for inequality.
| other | Identity to compare. |
Definition at line 63 of file file_watcher.hpp.
|
inline |
Orders identities by device and then index.
| other | Identity to compare. |
Definition at line 70 of file file_watcher.hpp.
|
inline |
Tests two identities for equality.
| other | Identity to compare. |
Definition at line 56 of file file_watcher.hpp.
|
inline |
Returns whether either identity component is nonzero.
Definition at line 50 of file file_watcher.hpp.
| std::uint64_t fray::watch::FileId::device = 0 |
Device number or volume serial number.
Definition at line 41 of file file_watcher.hpp.
| std::uint64_t fray::watch::FileId::index = 0 |
Inode number or file index.
Definition at line 45 of file file_watcher.hpp.