template<class CachedType>
class ArThreadLocalScopedCache< CachedType >
Utility class for custom resolver implementations.
This class wraps up a common pattern for implementing thread-local scoped caches for ArResolver::BeginCacheScope and ArResolver::EndCacheScope.
ResolveCache _cache;
void BeginCacheScope(
VtValue* data) { _cache.BeginCacheScope(data); }
void EndCacheScope(
VtValue* data) { _cache.EndCacheScope(data); }
void Resolve(...) {
if (ResolveCache::CachePtr cache = _cache.GetCurrentCache()) {
}
}
};
Interface for the asset resolution system.
Utility class for custom resolver implementations.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
- See also
- Scoped Resolution Cache
Definition at line 66 of file threadLocalScopedCache.h.