24#ifndef PXR_USD_AR_RESOLVED_PATH_H
25#define PXR_USD_AR_RESOLVED_PATH_H
30#include "pxr/usd/ar/api.h"
35PXR_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;
123template <
class HashState>
130PXR_NAMESPACE_CLOSE_SCOPE
Represents a resolved asset path.
const std::string & GetPathString() const
Return the resolved path held by this object as a string.
bool empty() const
Equivalent to IsEmpty.
ArResolvedPath(const std::string &resolvedPath)
Construct an ArResolvedPath holding the given resolvedPath.
bool IsEmpty() const
Return true if this object is holding an empty resolved path, false otherwise.
size_t GetHash() const
Return hash value for this object.
ArResolvedPath(std::string &&resolvedPath)
This is an overloaded member function, provided for convenience. It differs from the above function o...
A user-extensible hashing mechanism for use with runtime hash tables.