24 #ifndef PXR_USD_USD_COLLECTION_MEMBERSHIP_QUERY_H
25 #define PXR_USD_USD_COLLECTION_MEMBERSHIP_QUERY_H
35 #include <unordered_map>
102 TfToken *expansionRule=
nullptr)
const;
119 const TfToken &parentExpansionRule,
120 TfToken *expansionRule=
nullptr)
const;
130 return _hasExcludes == rhs._hasExcludes &&
131 _pathExpansionRuleMap == rhs._pathExpansionRuleMap;
136 return !(*
this == rhs);
147 return Hash()(*this);
154 return _pathExpansionRuleMap;
162 bool _hasExcludes=
false;
std::unordered_map< SdfPath, TfToken, SdfPath::Hash > PathExpansionRuleMap
USD_API std::set< UsdObject > UsdComputeIncludedObjectsFromCollection(const UsdCollectionMembershipQuery &query, const UsdStageWeakPtr &stage, const Usd_PrimFlagsPredicate &pred=UsdPrimDefaultPredicate)
const PathExpansionRuleMap & GetAsPathExpansionRuleMap() const
Represents a flattened view of a collection. For more information about collections, please see UsdCollectionAPI as a way to encode and retrieve a collection from scene description. A UsdCollectionMembershipQuery object can be used to answer queries about membership of paths in the collection efficiently.
size_t OIIO_API Hash(const char *s, size_t len)
bool operator!=(UsdCollectionMembershipQuery const &rhs) const
Inequality operator.
USD_API bool IsPathIncluded(const SdfPath &path, TfToken *expansionRule=nullptr) const
USD_API size_t operator()(UsdCollectionMembershipQuery const &query) const
size_t GetHash() const
Hash function.
std::set< class SdfPath > SdfPathSet
A set of SdfPaths.
GLsizei const GLchar *const * path
UsdStagePtr UsdStageWeakPtr
UsdCollectionMembershipQuery()
USD_API const Usd_PrimFlagsConjunction UsdPrimDefaultPredicate
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
USD_API SdfPathSet UsdComputeIncludedPathsFromCollection(const UsdCollectionMembershipQuery &query, const UsdStageWeakPtr &stage, const Usd_PrimFlagsPredicate &pred=UsdPrimDefaultPredicate)
bool operator==(UsdCollectionMembershipQuery const &rhs) const
Equality operator.