1#ifndef ASSET_IDENTIFIER_DEF
2#define ASSET_IDENTIFIER_DEF
5#include "pxr/usd/ar/resolvedPath.h"
15PXR_NAMESPACE_USING_DIRECTIVE
25 AssetIdentifier(
const ArResolvedPath &path,
const std::string &identifier,
bool is_static):
120 return std::hash<std::string>()(str);
cache element class used to represent an Usd asset in cache for the resolver
Definition: assetIdentifierDef.h:17
const bool m_static
Definition: assetIdentifierDef.h:106
bool operator==(const AssetIdentifier &other) const
Definition: assetIdentifierDef.cpp:94
bool setResolvedAssetPath(const ArResolvedPath &inResolvedAssetPath)
allows setting the ResolvedAssetPath
Definition: assetIdentifierDef.cpp:16
bool isEmpty() const
can be used to know if given AssetIdentifier has data in it
Definition: assetIdentifierDef.cpp:47
void invalidate()
allows you to invalidate this AssetIdentifier.
Definition: assetIdentifierDef.cpp:61
bool setAssetIdentifier(const std::string &inAssetIdentifier)
allows you to set the internal m_assetIdentifier
Definition: assetIdentifierDef.cpp:38
void validate()
allows you to validate this AssetIdentifier.
Definition: assetIdentifierDef.cpp:70
bool m_invalidated
Definition: assetIdentifierDef.h:107
AssetIdentifier(const ArResolvedPath &path, const std::string &identifier, bool is_static)
Definition: assetIdentifierDef.h:25
void printInfo() const
this function will print out all debug info about this AssetIdentifier instance
Definition: assetIdentifierDef.cpp:84
std::string getAssetIdentifier() const
returns the asset identifier
Definition: assetIdentifierDef.cpp:33
AssetIdentifier & operator=(const AssetIdentifier &other)
Definition: assetIdentifierDef.cpp:99
AssetIdentifier(const std::string &assetIdentifier)
Definition: assetIdentifierDef.h:23
bool isValid() const
this function allows you to know if an given AssetIdentifier's cache is still valid.
Definition: assetIdentifierDef.cpp:56
bool isModifiable() const
allows you to know if you can modify the data in this AssetIdentifier it is also used in getAssetIden...
Definition: assetIdentifierDef.cpp:79
AssetIdentifier()
Definition: assetIdentifierDef.h:19
ArResolvedPath getResolvedAssetPath() const
returns the ResolvedAssetPath for this AssetIdentifier
Definition: assetIdentifierDef.cpp:11
std::string m_assetIdentifier
Definition: assetIdentifierDef.h:109
AssetIdentifier(bool is_static)
Definition: assetIdentifierDef.h:21
ArResolvedPath m_resolvedAssetPath
Definition: assetIdentifierDef.h:108
Definition: assetIdentifierDef.h:112
size_t operator()(const std::string &str) const
Definition: assetIdentifierDef.h:119
size_t operator()(const AssetIdentifier &instance) const
Definition: assetIdentifierDef.h:114