Utility class for custom resolver implementations.
More...
#include <threadLocalScopedCache.h>
|
using | CachePtr = std::shared_ptr< CachedType > |
|
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 49 of file threadLocalScopedCache.h.
◆ CachePtr
using CachePtr = std::shared_ptr<CachedType> |
◆ BeginCacheScope()
void BeginCacheScope |
( |
VtValue * |
cacheScopeData | ) |
|
|
inline |
◆ EndCacheScope()
void EndCacheScope |
( |
VtValue * |
cacheScopeData | ) |
|
|
inline |
◆ GetCurrentCache()
CachePtr GetCurrentCache |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: