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);
121 return _resolvedPath;
128 lhs._assetPath.swap(rhs._assetPath);
129 lhs._resolvedPath.swap(rhs._resolvedPath);
132 std::string _assetPath;
133 std::string _resolvedPath;
149 PXR_NAMESPACE_CLOSE_SCOPE
151 #endif // PXR_USD_SDF_ASSET_PATH_H SDF_API SdfAssetPath()
Construct an empty 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.
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.
const std::string & GetAssetPath() const
Return the asset path.
SDF_API bool operator<(const SdfAssetPath &rhs) const
Ordering first by asset path, then by resolved path.