AYON Usd Resolver  0.1.0
Loading...
Searching...
No Matches
resolverContext.h
Go to the documentation of this file.
1#ifndef AR_AYONUSDRESOLVER_RESOLVER_CONTEXT_H
2#define AR_AYONUSDRESOLVER_RESOLVER_CONTEXT_H
3
4#include "pluginData/api.h"
5
6#include "pxr/pxr.h"
7#include "pxr/usd/ar/defineResolverContext.h"
8
10
11#include <string>
12
14 public:
15 // Constructors
22
23 // Standard Ops
25 bool operator<(const AyonUsdResolverContext &ctx) const;
27 bool operator==(const AyonUsdResolverContext &ctx) const;
29 bool operator!=(const AyonUsdResolverContext &ctx) const;
31 friend size_t hash_value(const AyonUsdResolverContext &ctx);
32
33 // Methods
35 void Initialize();
38
40 void dropCache();
41
43 void deleteFromCache(const std::string &key);
44
46 void clearCache();
47
48 std::shared_ptr<resolverContextCache> getCachePtr() const;
49
50 private:
51 std::shared_ptr<resolverContextCache> cache;
52 ArResolvedPath rootPath;
53};
54
55PXR_NAMESPACE_OPEN_SCOPE
57PXR_NAMESPACE_CLOSE_SCOPE
58
59#endif // AR_AYONUSDRESOLVER_RESOLVER_CONTEXT_H
#define AR_AYONUSDRESOLVER_API
Definition: api.h:17
Definition: resolverContext.h:13
AR_AYONUSDRESOLVER_API void dropCache()
Definition: resolverContext.cpp:82
AR_AYONUSDRESOLVER_API void clearCache()
Definition: resolverContext.cpp:94
AR_AYONUSDRESOLVER_API bool operator==(const AyonUsdResolverContext &ctx) const
Definition: resolverContext.cpp:56
ArResolvedPath rootPath
Definition: resolverContext.h:52
AR_AYONUSDRESOLVER_API void deleteFromCache(const std::string &key)
Definition: resolverContext.cpp:88
AR_AYONUSDRESOLVER_API bool operator<(const AyonUsdResolverContext &ctx) const
Definition: resolverContext.cpp:51
AR_AYONUSDRESOLVER_API void Initialize()
Definition: resolverContext.cpp:70
AR_AYONUSDRESOLVER_API AyonUsdResolverContext()
Definition: resolverContext.cpp:39
std::shared_ptr< resolverContextCache > cache
Definition: resolverContext.h:51
AR_AYONUSDRESOLVER_API friend size_t hash_value(const AyonUsdResolverContext &ctx)
Definition: resolverContext.cpp:66
AR_AYONUSDRESOLVER_API ~AyonUsdResolverContext()
Definition: resolverContext.cpp:46
std::shared_ptr< resolverContextCache > getCachePtr() const
Definition: resolverContext.cpp:100
AR_AYONUSDRESOLVER_API void ClearAndReinitialize()
Definition: resolverContext.cpp:75
AR_AYONUSDRESOLVER_API AyonUsdResolverContext(const AyonUsdResolverContext &ctx)
AR_AYONUSDRESOLVER_API bool operator!=(const AyonUsdResolverContext &ctx) const
Definition: resolverContext.cpp:61
PXR_NAMESPACE_OPEN_SCOPE AR_DECLARE_RESOLVER_CONTEXT(AyonUsdResolverContext)