24#ifndef PXR_USD_SDF_SITE_H
25#define PXR_USD_SDF_SITE_H
29#include "pxr/usd/sdf/path.h"
34PXR_NAMESPACE_OPEN_SCOPE
51 bool operator==(
const SdfSite& other)
const
53 return layer == other.layer && path == other.path;
56 bool operator!=(
const SdfSite& other)
const
58 return !(*
this == other);
61 bool operator<(
const SdfSite& other)
const
63 return layer < other.layer ||
64 (!(other.layer < layer) && path < other.path);
67 bool operator>(
const SdfSite& other)
const
72 bool operator<=(
const SdfSite& other)
const
74 return !(other < *
this);
77 bool operator>=(
const SdfSite& other)
const
79 return !(*
this < other);
86 explicit operator bool()
const
88 return layer && !path.
IsEmpty();
96typedef std::set<SdfSite> SdfSiteSet;
97typedef std::vector<SdfSite> SdfSiteVector;
99PXR_NAMESPACE_CLOSE_SCOPE
A path value used to locate objects in layers or scenegraphs.
bool IsEmpty() const noexcept
Returns true if this is the empty path (SdfPath::EmptyPath()).
An SdfSite is a simple representation of a location in a layer where opinions may possibly be found.