|
AYON Usd Resolver
1.0.0
|
cache element class used to represent an Usd asset in cache for the resolver More...
#include <assetIdentDef.h>
Public Member Functions | |
| assetIdent () | |
| assetIdent (bool is_static) | |
| assetIdent (const std::string &assetIdentifier) | |
| assetIdent (const ArResolvedPath &path, const std::string &identifier, bool is_static) | |
| ArResolvedPath | getResolvedAssetPath () const |
| returns the ResolvedAssetPath for this assetIdent More... | |
| bool | setResolvedAssetPath (const ArResolvedPath &inResolvedAssetPath) |
| allows setting the ResolvedAssetPath More... | |
| bool | setResolvedAssetPath (const std::string &inResolvedAssetPath) |
| std::string | getAssetIdentifier () const |
| returns the asset identifier More... | |
| bool | setAssetIdentifier (const std::string inAssetIdentifier) |
| allows you to set the internal m_assetIdentifier More... | |
| bool | is_empty () const |
| can be used to know if given assetIdent has data in it More... | |
| bool | is_valid () const |
| this function allows you to know if an given assetIdent's cache is still valid. More... | |
| void | invalidate () |
| allows you to invalidate this assetIdent. More... | |
| void | validate () |
| allows you to validate this assetIdent. More... | |
| bool | is_modifiable () const |
| allows you to know if you can modify the data in this assetIdent it is also used in getAssetIdentifier and getResolvedAssetPath to keep you from modifying data you should not touch. More... | |
| void | printInfo () const |
| this function will print out all debug info about this assetIdent instance More... | |
| bool | operator== (const assetIdent &other) const |
| assetIdent & | operator= (const assetIdent &other) |
| assetIdent () | |
| assetIdent (bool is_static) | |
| assetIdent (const std::string &assetIdentifier) | |
| assetIdent (const ArResolvedPath &path, const std::string &identifier, bool is_static) | |
| ArResolvedPath | getResolvedAssetPath () const |
| returns the ResolvedAssetPath for this assetIdent More... | |
| bool | setResolvedAssetPath (const ArResolvedPath &inResolvedAssetPath) |
| allows setting the ResolvedAssetPath More... | |
| bool | setResolvedAssetPath (const std::string &inResolvedAssetPath) |
| std::string | getAssetIdentifier () const |
| returns the asset identifier More... | |
| bool | setAssetIdentifier (const std::string inAssetIdentifier) |
| allows you to set the internal m_assetIdentifier More... | |
| bool | is_empty () const |
| can be used to know if given assetIdent has data in it More... | |
| bool | is_valid () const |
| this function allows you to know if an given assetIdent's cache is still valid. More... | |
| void | invalidate () |
| allows you to invalidate this assetIdent. More... | |
| void | validate () |
| allows you to validate this assetIdent. More... | |
| bool | is_modifiable () const |
| allows you to know if you can modify the data in this assetIdent it is also used in getAssetIdentifier and getResolvedAssetPath to keep you from modifying data you should not touch. More... | |
| void | printInfo () const |
| this function will print out all debug info about this assetIdent instance More... | |
| bool | operator== (const assetIdent &other) const |
| assetIdent & | operator= (const assetIdent &other) |
Private Attributes | |
| const bool | m_static |
| bool | m_invalidated |
| ArResolvedPath | m_resolvedAssetPath |
| std::string | m_assetIdentifier |
cache element class used to represent an Usd asset in cache for the resolver
| is_static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| std::string assetIdent::getAssetIdentifier | ( | ) | const |
returns the asset identifier
| std::string assetIdent::getAssetIdentifier | ( | ) | const |
returns the asset identifier
| PXR_NAMESPACE_USING_DIRECTIVE ArResolvedPath assetIdent::getResolvedAssetPath | ( | ) | const |
returns the ResolvedAssetPath for this assetIdent
| ArResolvedPath assetIdent::getResolvedAssetPath | ( | ) | const |
returns the ResolvedAssetPath for this assetIdent
| void assetIdent::invalidate | ( | ) |
allows you to invalidate this assetIdent.
It is not possible to invalidate an assetIdent that is not modifiable in this case the function will simply return
| void assetIdent::invalidate | ( | ) |
allows you to invalidate this assetIdent.
It is not possible to invalidate an assetIdent that is not modifiable in this case the function will simply return
| bool assetIdent::is_empty | ( | ) | const |
can be used to know if given assetIdent has data in it
| bool assetIdent::is_empty | ( | ) | const |
can be used to know if given assetIdent has data in it
| bool assetIdent::is_modifiable | ( | ) | const |
allows you to know if you can modify the data in this assetIdent 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 assetIdent is marked as static
| bool assetIdent::is_modifiable | ( | ) | const |
allows you to know if you can modify the data in this assetIdent 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 assetIdent is marked as static
| bool assetIdent::is_valid | ( | ) | const |
this function allows you to know if an given assetIdent's cache is still valid.
This can be use full for TTL or cache invalidation as we use lazy reaching for cached objects
| bool assetIdent::is_valid | ( | ) | const |
this function allows you to know if an given assetIdent's cache is still valid.
This can be use full for TTL or cache invalidation as we use lazy reaching for cached objects
| assetIdent & assetIdent::operator= | ( | const assetIdent & | other | ) |
| assetIdent & assetIdent::operator= | ( | const assetIdent & | other | ) |
| bool assetIdent::operator== | ( | const assetIdent & | other | ) | const |
| bool assetIdent::operator== | ( | const assetIdent & | other | ) | const |
| void assetIdent::printInfo | ( | ) | const |
this function will print out all debug info about this assetIdent instance
| void assetIdent::printInfo | ( | ) | const |
this function will print out all debug info about this assetIdent instance
| bool assetIdent::setAssetIdentifier | ( | const std::string | inAssetIdentifier | ) |
allows you to set the internal m_assetIdentifier
| assetIdentifier |
| bool assetIdent::setAssetIdentifier | ( | const std::string | inAssetIdentifier | ) |
allows you to set the internal m_assetIdentifier
| assetIdentifier |
| bool assetIdent::setResolvedAssetPath | ( | const ArResolvedPath & | inResolvedAssetPath | ) |
allows setting the ResolvedAssetPath
| inResolvedAssetPath |
| bool assetIdent::setResolvedAssetPath | ( | const ArResolvedPath & | inResolvedAssetPath | ) |
allows setting the ResolvedAssetPath
| inResolvedAssetPath |
| bool assetIdent::setResolvedAssetPath | ( | const std::string & | inResolvedAssetPath | ) |
| bool assetIdent::setResolvedAssetPath | ( | const std::string & | inResolvedAssetPath | ) |
| void assetIdent::validate | ( | ) |
allows you to validate this assetIdent.
This function will return while doing nothing if is_modifiable returns false
| void assetIdent::validate | ( | ) |
allows you to validate this assetIdent.
This function will return while doing nothing if is_modifiable returns false
|
private |
|
private |
|
private |
|
private |