7#ifndef PXR_USD_SDF_SITE_H
8#define PXR_USD_SDF_SITE_H
12#include "pxr/usd/sdf/path.h"
17PXR_NAMESPACE_OPEN_SCOPE
34 bool operator==(
const SdfSite& other)
const
36 return layer == other.layer && path == other.path;
39 bool operator!=(
const SdfSite& other)
const
41 return !(*
this == other);
44 bool operator<(
const SdfSite& other)
const
46 return layer < other.layer ||
47 (!(other.layer < layer) && path < other.path);
50 bool operator>(
const SdfSite& other)
const
55 bool operator<=(
const SdfSite& other)
const
57 return !(other < *
this);
60 bool operator>=(
const SdfSite& other)
const
62 return !(*
this < other);
69 explicit operator bool()
const
71 return layer && !path.
IsEmpty();
79typedef std::set<SdfSite> SdfSiteSet;
80typedef std::vector<SdfSite> SdfSiteVector;
82PXR_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.