24 #ifndef PXR_USD_AR_RESOLVED_PATH_H
25 #define PXR_USD_AR_RESOLVED_PATH_H
30 #include "pxr/usd/ar/api.h"
35 PXR_NAMESPACE_OPEN_SCOPE
44 : _resolvedPath(resolvedPath)
50 : _resolvedPath(std::move(resolvedPath))
63 {
return _resolvedPath == rhs._resolvedPath; }
66 {
return _resolvedPath != rhs._resolvedPath; }
69 {
return _resolvedPath < rhs._resolvedPath; }
72 {
return _resolvedPath > rhs._resolvedPath; }
75 {
return _resolvedPath <= rhs._resolvedPath; }
78 {
return _resolvedPath >= rhs._resolvedPath; }
80 bool operator==(
const std::string& rhs)
const
81 {
return _resolvedPath == rhs; }
83 bool operator!=(
const std::string& rhs)
const
84 {
return _resolvedPath != rhs; }
86 bool operator<(
const std::string& rhs)
const
87 {
return _resolvedPath < rhs; }
89 bool operator>(
const std::string& rhs)
const
90 {
return _resolvedPath > rhs; }
92 bool operator<=(
const std::string& rhs)
const
93 {
return _resolvedPath <= rhs; }
95 bool operator>=(
const std::string& rhs)
const
96 {
return _resolvedPath >= rhs; }
103 explicit operator bool()
const {
return !
IsEmpty(); }
107 bool IsEmpty()
const {
return _resolvedPath.empty(); }
120 std::string _resolvedPath;
123 template <
class HashState>
130 PXR_NAMESPACE_CLOSE_SCOPE
ArResolvedPath(const std::string &resolvedPath)
Construct an ArResolvedPath holding the given resolvedPath.
A user-extensible hashing mechanism for use with runtime hash tables.
bool empty() const
Equivalent to IsEmpty.
bool IsEmpty() const
Return true if this object is holding an empty resolved path, false otherwise.
ArResolvedPath(std::string &&resolvedPath)
Represents a resolved asset path.
size_t GetHash() const
Return hash value for this object.
const std::string & GetPathString() const
Return the resolved path held by this object as a string.