24 #ifndef PXR_USD_USD_COLLECTION_MEMBERSHIP_QUERY_H
25 #define PXR_USD_USD_COLLECTION_MEMBERSHIP_QUERY_H
35 #include <unordered_map>
104 TfToken *expansionRule=
nullptr)
const;
121 const TfToken &parentExpansionRule,
122 TfToken *expansionRule=
nullptr)
const;
132 return _hasExcludes == rhs._hasExcludes &&
133 _pathExpansionRuleMap == rhs._pathExpansionRuleMap &&
134 _includedCollections == rhs._includedCollections;
139 return !(*
this == rhs);
150 return Hash()(*this);
157 return _pathExpansionRuleMap;
167 return _includedCollections;
177 bool _hasExcludes=
false;
const SdfPathSet & GetIncludedCollections() const
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
STATIC_INLINE size_t Hash(const char *s, size_t len)
GLsizei const GLchar *const * path
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.
UsdStagePtr UsdStageWeakPtr
UsdCollectionMembershipQuery()=default
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.
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.