MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_cached_region_internal()

std::optional< RegionCache > MayaFlux::Kakshya::RegionCacheManager::get_cached_region_internal ( const Region region)
private

Definition at line 109 of file RegionCacheManager.cpp.

110{
111 auto it = m_cache.find(region);
112 if (it != m_cache.end()) {
113 update_lru(region);
114 it->second.mark_accessed();
115 return it->second;
116 }
117 return std::nullopt;
118}
std::unordered_map< Region, RegionCache, RegionHash > m_cache

References m_cache, and update_lru().

Referenced by get_cached_segment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: