24#ifndef PXR_USD_SDF_ASSET_PATH_H
25#define PXR_USD_SDF_ASSET_PATH_H
30#include "pxr/usd/sdf/api.h"
36PXR_NAMESPACE_OPEN_SCOPE
69 SdfAssetPath(
const std::string &path,
const std::string &resolvedPath);
78 return _assetPath == rhs._assetPath &&
79 _resolvedPath == rhs._resolvedPath;
85 return !(*
this == rhs);
94 return !(rhs < *
this);
106 return !(*
this < rhs);
136 return std::move(_assetPath);
145 return _resolvedPath;
150 return std::move(_resolvedPath);
157 lhs._assetPath.swap(rhs._assetPath);
158 lhs._resolvedPath.swap(rhs._resolvedPath);
161 std::string _assetPath;
162 std::string _resolvedPath;
178PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and an optional resolved path.
std::string GetResolvedPath() const &&
Overload for rvalues, move out the asset path.
SDF_API SdfAssetPath(const std::string &path)
Construct an asset path with path and no associated resolved path.
bool operator<=(const SdfAssetPath &rhs) const
Less than or equal operator.
SDF_API SdfAssetPath(const std::string &path, const std::string &resolvedPath)
Construct an asset path with path and an associated resolvedPath.
bool operator>=(const SdfAssetPath &rhs) const
Greater than or equal operator.
const std::string & GetResolvedPath() const &
Return the resolved asset path, if any.
std::string GetAssetPath() const &&
Overload for rvalues, move out the asset path.
SDF_API bool operator<(const SdfAssetPath &rhs) const
Ordering first by asset path, then by resolved path.
bool operator!=(const SdfAssetPath &rhs) const
Inequality operator.
const std::string & GetAssetPath() const &
Return the asset path.
size_t GetHash() const
Hash function.
bool operator==(const SdfAssetPath &rhs) const
Equality, including the resolved path.
bool operator>(const SdfAssetPath &rhs) const
Greater than operator.
SDF_API SdfAssetPath()
Construct an empty asset path.
static size_t Combine(Args &&... args)
Produce a hash code by combining the hash codes of several objects.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].