24 #ifndef PXR_USD_SDF_ASSET_PATH_H 25 #define PXR_USD_SDF_ASSET_PATH_H 30 #include "pxr/usd/sdf/api.h" 32 #include <boost/functional/hash.hpp> 33 #include <boost/operators.hpp> 37 PXR_NAMESPACE_OPEN_SCOPE
48 public boost::totally_ordered<SdfAssetPath>
71 SdfAssetPath(
const std::string &path,
const std::string &resolvedPath);
80 return _assetPath == rhs._assetPath &&
81 _resolvedPath == rhs._resolvedPath;
90 boost::hash_combine(hash, _assetPath);
91 boost::hash_combine(hash, _resolvedPath);
117 return std::move(_assetPath);
126 return _resolvedPath;
131 return std::move(_resolvedPath);
138 lhs._assetPath.swap(rhs._assetPath);
139 lhs._resolvedPath.swap(rhs._resolvedPath);
142 std::string _assetPath;
143 std::string _resolvedPath;
159 PXR_NAMESPACE_CLOSE_SCOPE
161 #endif // PXR_USD_SDF_ASSET_PATH_H SDF_API SdfAssetPath()
Construct an empty asset path.
std::string GetAssetPath() const &&
Overload for rvalues, move out the asset path.
const std::string & GetResolvedPath() const &
Return the resolved asset path, if any.
size_t GetHash() const
Hash function.
bool operator==(const SdfAssetPath &rhs) const
Equality, including the resolved path.
const std::string & GetAssetPath() const &
Return the asset path.
std::string GetResolvedPath() const &&
Overload for rvalues, move out the asset path.
Contains an asset path and an optional resolved path.
SDF_API std::ostream & operator<<(std::ostream &out, const SdfAssetPath &ap)
Stream insertion operator for the string representation of this assetPath.
SDF_API bool operator<(const SdfAssetPath &rhs) const
Ordering first by asset path, then by resolved path.