cache element class used to represent an Usd asset in cache for the resolver
More...
#include <assetIdentifierDef.h>
cache element class used to represent an Usd asset in cache for the resolver
- Parameters
-
- Returns
◆ AssetIdentifier() [1/4]
| AssetIdentifier::AssetIdentifier |
( |
| ) |
|
|
inline |
◆ AssetIdentifier() [2/4]
| AssetIdentifier::AssetIdentifier |
( |
bool |
is_static | ) |
|
|
inline |
◆ AssetIdentifier() [3/4]
| AssetIdentifier::AssetIdentifier |
( |
const std::string & |
assetIdentifier | ) |
|
|
inline |
◆ AssetIdentifier() [4/4]
| AssetIdentifier::AssetIdentifier |
( |
const ArResolvedPath & |
path, |
|
|
const std::string & |
identifier, |
|
|
bool |
is_static |
|
) |
| |
|
inline |
◆ getAssetIdentifier()
| std::string AssetIdentifier::getAssetIdentifier |
( |
| ) |
const |
returns the asset identifier
◆ getResolvedAssetPath()
| PXR_NAMESPACE_USING_DIRECTIVE ArResolvedPath AssetIdentifier::getResolvedAssetPath |
( |
| ) |
const |
returns the ResolvedAssetPath for this AssetIdentifier
- Returns
- Pxr ArResolvedPath
◆ invalidate()
| void AssetIdentifier::invalidate |
( |
| ) |
|
allows you to invalidate this AssetIdentifier.
It is not possible to invalidate an AssetIdentifier that is not modifiable in this case the function will simply return
◆ isEmpty()
| bool AssetIdentifier::isEmpty |
( |
| ) |
const |
can be used to know if given AssetIdentifier has data in it
- Returns
- bool: true if neither m_resolvedAssetPath or m_assetIdentifier have any data in them
◆ isModifiable()
| bool AssetIdentifier::isModifiable |
( |
| ) |
const |
allows you to know if you can modify the data in this AssetIdentifier it is also used in getAssetIdentifier and getResolvedAssetPath to keep you from modifying data you should not touch.
This will be the case if this AssetIdentifier is marked as static
- Returns
- true if you are allowed to modify the AssetIdentifier, false if the modification is not allowed for what ever reason
◆ isValid()
| bool AssetIdentifier::isValid |
( |
| ) |
const |
this function allows you to know if an given AssetIdentifier's cache is still valid.
This can be use full for TTL or cache invalidation as we use lazy reaching for cached objects
- Returns
- true if the current data can safely be used. false if the data is out of data or should in be re-cached
◆ operator=()
◆ operator==()
◆ printInfo()
| void AssetIdentifier::printInfo |
( |
| ) |
const |
this function will print out all debug info about this AssetIdentifier instance
◆ setAssetIdentifier()
| bool AssetIdentifier::setAssetIdentifier |
( |
const std::string & |
inAssetIdentifier | ) |
|
allows you to set the internal m_assetIdentifier
- Parameters
-
- Returns
◆ setResolvedAssetPath() [1/2]
| bool AssetIdentifier::setResolvedAssetPath |
( |
const ArResolvedPath & |
inResolvedAssetPath | ) |
|
allows setting the ResolvedAssetPath
- Parameters
-
- Returns
- false if AssetIdentifier can't be modified (eg. isValid)
◆ setResolvedAssetPath() [2/2]
| bool AssetIdentifier::setResolvedAssetPath |
( |
const std::string & |
inResolvedAssetPath | ) |
|
◆ validate()
| void AssetIdentifier::validate |
( |
| ) |
|
allows you to validate this AssetIdentifier.
This function will return while doing nothing if isModifiable returns false
◆ m_assetIdentifier
| std::string AssetIdentifier::m_assetIdentifier |
|
private |
◆ m_invalidated
| bool AssetIdentifier::m_invalidated |
|
private |
◆ m_resolvedAssetPath
| ArResolvedPath AssetIdentifier::m_resolvedAssetPath |
|
private |
◆ m_static
| const bool AssetIdentifier::m_static |
|
private |
The documentation for this class was generated from the following files: