7#ifndef PXR_USD_SDF_ASSET_PATH_H
8#define PXR_USD_SDF_ASSET_PATH_H
13#include "pxr/usd/sdf/api.h"
19PXR_NAMESPACE_OPEN_SCOPE
52 SdfAssetPath(
const std::string &path,
const std::string &resolvedPath);
61 return _assetPath == rhs._assetPath &&
62 _resolvedPath == rhs._resolvedPath;
68 return !(*
this == rhs);
77 return !(rhs < *
this);
89 return !(*
this < rhs);
119 return std::move(_assetPath);
128 return _resolvedPath;
133 return std::move(_resolvedPath);
140 lhs._assetPath.swap(rhs._assetPath);
141 lhs._resolvedPath.swap(rhs._resolvedPath);
144 std::string _assetPath;
145 std::string _resolvedPath;
161PXR_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].