6#include "pxr/usd/ar/resolvedPath.h"
24 assetIdent(
const ArResolvedPath &path,
const std::string &identifier,
bool is_static):
119 return std::hash<std::string>()(str);
cache element class used to represent an Usd asset in cache for the resolver
Definition: assetIdentDef.h:16
bool setAssetIdentifier(const std::string inAssetIdentifier)
allows you to set the internal m_assetIdentifier
Definition: assetIdentDef.cpp:37
ArResolvedPath getResolvedAssetPath() const
returns the ResolvedAssetPath for this assetIdent
Definition: assetIdentDef.cpp:10
assetIdent & operator=(const assetIdent &other)
Definition: assetIdentDef.cpp:98
bool is_valid() const
this function allows you to know if an given assetIdent's cache is still valid.
Definition: assetIdentDef.cpp:55
bool is_modifiable() const
allows you to know if you can modify the data in this assetIdent it is also used in getAssetIdentifie...
Definition: assetIdentDef.cpp:78
bool m_invalidated
Definition: assetIdentDef.h:106
void validate()
allows you to validate this assetIdent.
Definition: assetIdentDef.cpp:69
assetIdent(bool is_static)
Definition: assetIdentDef.h:20
std::string m_assetIdentifier
Definition: assetIdentDef.h:108
bool operator==(const assetIdent &other) const
Definition: assetIdentDef.cpp:93
std::string getAssetIdentifier() const
returns the asset identifier
Definition: assetIdentDef.cpp:32
bool setResolvedAssetPath(const ArResolvedPath &inResolvedAssetPath)
allows setting the ResolvedAssetPath
Definition: assetIdentDef.cpp:15
assetIdent(const std::string &assetIdentifier)
Definition: assetIdentDef.h:22
assetIdent(const ArResolvedPath &path, const std::string &identifier, bool is_static)
Definition: assetIdentDef.h:24
const bool m_static
Definition: assetIdentDef.h:105
void invalidate()
allows you to invalidate this assetIdent.
Definition: assetIdentDef.cpp:60
void printInfo() const
this function will print out all debug info about this assetIdent instance
Definition: assetIdentDef.cpp:83
bool is_empty() const
can be used to know if given assetIdent has data in it
Definition: assetIdentDef.cpp:46
ArResolvedPath m_resolvedAssetPath
Definition: assetIdentDef.h:107
assetIdent()
Definition: assetIdentDef.h:18
Definition: wrapResolverTokens.cpp:14
Definition: assetIdentDef.h:111
size_t operator()(const std::string &str) const
Definition: assetIdentDef.h:118
size_t operator()(const assetIdent &instance) const
Definition: assetIdentDef.h:113