7#ifndef PXR_USD_AR_RESOLVED_PATH_H
8#define PXR_USD_AR_RESOLVED_PATH_H
13#include "pxr/usd/ar/api.h"
18PXR_NAMESPACE_OPEN_SCOPE
27 : _resolvedPath(resolvedPath)
33 : _resolvedPath(
std::move(resolvedPath))
46 {
return _resolvedPath == rhs._resolvedPath; }
49 {
return _resolvedPath != rhs._resolvedPath; }
52 {
return _resolvedPath < rhs._resolvedPath; }
55 {
return _resolvedPath > rhs._resolvedPath; }
58 {
return _resolvedPath <= rhs._resolvedPath; }
61 {
return _resolvedPath >= rhs._resolvedPath; }
63 bool operator==(
const std::string& rhs)
const
64 {
return _resolvedPath == rhs; }
66 bool operator!=(
const std::string& rhs)
const
67 {
return _resolvedPath != rhs; }
69 bool operator<(
const std::string& rhs)
const
70 {
return _resolvedPath < rhs; }
72 bool operator>(
const std::string& rhs)
const
73 {
return _resolvedPath > rhs; }
75 bool operator<=(
const std::string& rhs)
const
76 {
return _resolvedPath <= rhs; }
78 bool operator>=(
const std::string& rhs)
const
79 {
return _resolvedPath >= rhs; }
86 explicit operator bool()
const {
return !
IsEmpty(); }
90 bool IsEmpty()
const {
return _resolvedPath.empty(); }
103 std::string _resolvedPath;
106template <
class HashState>
113PXR_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.