24 #ifndef PXR_USD_SDF_SITE_H
25 #define PXR_USD_SDF_SITE_H
29 #include "pxr/usd/sdf/path.h"
33 #include <boost/operators.hpp>
35 PXR_NAMESPACE_OPEN_SCOPE
44 :
public boost::totally_ordered<SdfSite>
53 bool operator==(
const SdfSite& other)
const
55 return layer == other.layer && path == other.path;
58 bool operator<(
const SdfSite& other)
const
60 return layer < other.layer ||
61 (!(other.layer < layer) && path < other.path);
68 explicit operator bool()
const
70 return layer && !path.
IsEmpty();
78 typedef std::set<SdfSite> SdfSiteSet;
79 typedef std::vector<SdfSite> SdfSiteVector;
81 PXR_NAMESPACE_CLOSE_SCOPE
83 #endif // PXR_USD_SDF_SITE_H
An SdfSite is a simple representation of a location in a layer where opinions may possibly be found...
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()).