7 #ifndef PXR_USD_SDF_ASSET_PATH_H
8 #define PXR_USD_SDF_ASSET_PATH_H
39 authoredPath = authoredPath_;
44 evaluatedPath = evaluatedPath_;
49 resolvedPath = resolvedPath_;
56 std::string authoredPath;
57 std::string evaluatedPath;
58 std::string resolvedPath;
98 const std::string &resolvedPath);
115 return _authoredPath == rhs._authoredPath &&
116 _evaluatedPath == rhs._evaluatedPath &&
117 _resolvedPath == rhs._resolvedPath;
123 return !(*
this == rhs);
132 return !(rhs < *
this);
144 return !(*
this < rhs);
170 return _authoredPath;
175 return std::move(_authoredPath);
187 return _evaluatedPath;
192 return std::move(_evaluatedPath);
200 return _evaluatedPath.empty() ? _authoredPath : _evaluatedPath;
206 _evaluatedPath.empty() ? _authoredPath : _evaluatedPath);
216 return _resolvedPath;
221 return std::move(_resolvedPath);
232 _authoredPath = authoredPath;
238 _evaluatedPath = evaluatedPath;
243 _resolvedPath = resolvedPath;
249 friend inline void swap(SdfAssetPath &lhs, SdfAssetPath &rhs) {
250 lhs._authoredPath.swap(rhs._authoredPath);
251 lhs._evaluatedPath.swap(rhs._evaluatedPath);
252 lhs._resolvedPath.swap(rhs._resolvedPath);
256 std::string _authoredPath;
259 std::string _evaluatedPath;
261 std::string _resolvedPath;
279 #endif // PXR_USD_SDF_ASSET_PATH_H
const std::string & GetEvaluatedPath() const &
std::string GetAuthoredPath() const &&
Overload for rvalues, move out the asset path.
SDF_API bool operator<(const SdfAssetPath &rhs) const
Ordering first by asset path, resolved path, then by evaluated path.
friend size_t hash_value(const SdfAssetPath &ap)
Equality, including the evaluated and resolved paths.
const std::string & GetAuthoredPath() const &
friend void swap(SdfAssetPath &lhs, SdfAssetPath &rhs)
void SetResolvedPath(const std::string &resolvedPath)
Sets the resolved path. This value is the result of asset resolution.
SDF_API SdfAssetPath()
Construct an empty asset path.
const std::string & GetResolvedPath() const &
bool operator>(const SdfAssetPath &rhs) const
std::string GetResolvedPath() const &&
Overload for rvalues, move out the asset path.
size_t GetHash() const
Hash function.
GLenum const GLfloat * params
SdfAssetPathParams & Authored(const std::string &authoredPath_)
SdfAssetPathParams & Evaluated(const std::string &evaluatedPath_)
const std::string & GetAssetPath() const &
std::string GetAssetPath() const &&
Overload for rvalues, move out the asset path.
bool operator<=(const SdfAssetPath &rhs) const
size_t operator()(const SdfAssetPath &ap) const
bool operator==(const SdfAssetPath &rhs) const
Equality, including the evaluated and resolved paths.
SdfAssetPathParams & Resolved(const std::string &resolvedPath_)
static size_t Combine(Args &&...args)
Produce a hash code by combining the hash codes of several objects.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
SDF_API std::ostream & operator<<(std::ostream &out, const SdfAssetPath &ap)
#define PXR_NAMESPACE_CLOSE_SCOPE
void SetAuthoredPath(const std::string &authoredPath)
bool operator>=(const SdfAssetPath &rhs) const
std::string GetEvaluatedPath() const &&
Overload for rvalues, move out the evaluated path.
void SetEvaluatedPath(const std::string &evaluatedPath)
bool operator!=(const SdfAssetPath &rhs) const