24 #ifndef PXR_USD_SDF_ASSET_PATH_H 25 #define PXR_USD_SDF_ASSET_PATH_H 30 #include "pxr/usd/sdf/api.h" 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;
114 return std::move(_assetPath);
123 return _resolvedPath;
128 return std::move(_resolvedPath);
135 lhs._assetPath.swap(rhs._assetPath);
136 lhs._resolvedPath.swap(rhs._resolvedPath);
139 std::string _assetPath;
140 std::string _resolvedPath;
156 PXR_NAMESPACE_CLOSE_SCOPE
158 #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.
static size_t Combine(Args &&... args)
Produce a hash code by combining the hash codes of several objects.
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.