Unravel Engine C++ Reference
Loading...
Searching...
No Matches
cache.hpp File Reference
#include "watcher.h"
#include "pattern_filter.h"
#include <chrono>
#include <filesystem>
#include <type_traits>
#include <vector>

Go to the source code of this file.

Classes

class  fs::cache< T >
 
struct  fs::cache< T >::cache_entry
 

Namespaces

namespace  fs
 

Typedefs

using fs::directory_cache = cache<directory_iterator>
 
using fs::recursive_directory_cache = cache<recursive_directory_iterator>
 

Functions

template<typename Iterator = recursive_directory_iterator>
auto fs::make_filtered_cache (const fs::path &path, const std::vector< std::string > &includes, const std::vector< std::string > &excludes={}, std::chrono::steady_clock::duration scan_frequency=std::chrono::milliseconds(500)) -> cache< Iterator >
 Convenience function to create a directory cache with pattern filtering.