|
| cache ()=default |
|
| cache (const fs::path &p, clock_t::duration scan_frequency) |
|
| cache (const fs::path &p, const pattern_filter &filter, clock_t::duration scan_frequency) |
|
| cache (const cache &rhs) |
|
| cache (cache &&rhs) noexcept |
|
cache & | operator= (const cache &rhs) |
|
cache & | operator= (cache &&rhs) noexcept |
|
| ~cache () |
|
decltype(auto) | begin () const |
| Returns the begin iterator for the underlying cached container and also refreshes the container if needed.
|
|
decltype(auto) | end () const |
| Returns the end iterator for the underlying cached container.
|
|
decltype(auto) | size () const |
| Returns the size for the underlying cached container.
|
|
decltype(auto) | at (size_t idx) const |
| Directly index into the underlying cached container.
|
|
decltype(auto) | operator[] (size_t idx) const |
|
void | refresh () const |
| Refreshes the cache and updates the timestamp of the last refresh. This operation is slow so try to not call it often. By default it is called only if iterated and marked by the dir watcher since its last refresh.
|
|
const fs::path & | get_path () const |
|
void | set_path (const fs::path &path, const fs::pattern_filter &filter) |
|
void | set_scan_frequency (clock_t::duration scan_frequency) |
|
template<typename T>
class fs::cache< T >
Definition at line 14 of file cache.hpp.