24 #ifndef PXR_USD_SDF_ASSET_PATH_H
25 #define PXR_USD_SDF_ASSET_PATH_H
32 #include <hboost/functional/hash.hpp>
33 #include <hboost/operators.hpp>
48 public hboost::totally_ordered<SdfAssetPath>
80 return _assetPath == rhs._assetPath &&
81 _resolvedPath == rhs._resolvedPath;
90 hboost::hash_combine(hash, _assetPath);
91 hboost::hash_combine(hash, _resolvedPath);
121 return _resolvedPath;
127 friend inline void swap(SdfAssetPath &lhs, SdfAssetPath &rhs) {
128 lhs._assetPath.swap(rhs._assetPath);
129 lhs._resolvedPath.swap(rhs._resolvedPath);
151 #endif // PXR_USD_SDF_ASSET_PATH_H
SDF_API bool operator<(const SdfAssetPath &rhs) const
Ordering first by asset path, then by resolved path.
const std::string & GetResolvedPath() const
friend size_t hash_value(const SdfAssetPath &ap)
Equality, including the resolved path.
friend void swap(SdfAssetPath &lhs, SdfAssetPath &rhs)
SDF_API SdfAssetPath()
Construct an empty asset path.
GLsizei const GLchar *const * path
size_t GetHash() const
Hash function.
GLsizei const GLchar *const * string
size_t operator()(const SdfAssetPath &ap) const
bool operator==(const SdfAssetPath &rhs) const
Equality, including the resolved path.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
const std::string & GetAssetPath() const
Return the asset path.
SDF_API std::ostream & operator<<(std::ostream &out, const SdfAssetPath &ap)
#define PXR_NAMESPACE_CLOSE_SCOPE