HDK
|
#include <collectionMembershipQuery.h>
Classes | |
struct | Hash |
Hash functor. More... | |
Public Types | |
using | ExpressionEvaluator = ExprEval |
![]() | |
using | PathExpansionRuleMap = std::unordered_map< SdfPath, TfToken, SdfPath::Hash > |
Additional Inherited Members | |
![]() | |
size_t | _GetHash () const |
Hash function. More... | |
USD_API bool | _IsPathIncludedByRuleMap (const SdfPath &path, TfToken *expansionRule=nullptr) const |
USD_API bool | _IsPathIncludedByRuleMap (const SdfPath &path, const TfToken &parentExpansionRule, TfToken *expansionRule=nullptr) const |
USD_API bool | _HasEmptyRuleMap () const |
![]() | |
TfToken | _topExpansionRule |
PathExpansionRuleMap | _pathExpansionRuleMap |
SdfPathSet | _includedCollections |
bool | _hasExcludes =false |
Definition at line 173 of file collectionMembershipQuery.h.
using Usd_CollectionMembershipQuery< ExprEval >::ExpressionEvaluator = ExprEval |
Definition at line 176 of file collectionMembershipQuery.h.
|
inline |
Return the expression evaluator associated with this query object. This may be an empty evaluator. See HasExpression().
Definition at line 287 of file collectionMembershipQuery.h.
|
inline |
Hash function.
Definition at line 323 of file collectionMembershipQuery.h.
|
inline |
Return true if the expression evaluator associated with this query object is not empty. See GetExpressionEvaluator().
Definition at line 293 of file collectionMembershipQuery.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns whether the given path is included in the collection from which this Usd_CollectionMembershipQueryBase object was computed. This is the API that clients should use for determining if a given object is a member of the collection. To enumerate all the members of a collection, use UsdComputeIncludedObjectsFromCollection or UsdComputeIncludedPathsFromCollection.
If expansionRule
is not nullptr, it is set to the expansion- rule value that caused the path to be included in or excluded from the collection. If path
is not included in the collection, expansionRule
is set to UsdTokens->exclude. If this query is not using an expansion rule map and is instead using a pattern-based membership expression, then expansionRule is set to one of the special UsdCollectionMembershipQueryTokens values, IncludedByMembershipExpression or ExcludedByMembershipExpression as appropriate.
It is useful to specify this parameter and use this overload of IsPathIncluded(), when you're interested in traversing a subtree and want to know whether the root of the subtree is included in a collection. For evaluating membership of descendants of the root, please use the other overload of IsPathIncluded(), that takes both a path and the parent expansionRule.
The python version of this method only returns the boolean result. It does not return an SdfPredicateFunctionResult or set expansionRule
.
Definition at line 208 of file collectionMembershipQuery.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns whether the given path, path
is included in the collection from which this Usd_CollectionMembershipQueryBase object was computed, given the parent-path's inherited expansion rule, parentExpansionRule
.
If expansionRule
is not nullptr, it is set to the expansion- rule value that caused the path to be included in or excluded from the collection. If path
is not included in the collection, expansionRule
is set to UsdTokens->exclude. If this query is not using an expansion rule map and is instead using a pattern-based membership expression, then expansionRule is set to one of the special UsdCollectionMembershipQueryTokens values, IncludedByMembershipExpression or ExcludedByMembershipExpression as appropriate.
The python version of this method only returns the boolean result. It does not return expansionRule
.
Definition at line 246 of file collectionMembershipQuery.h.
|
inline |
Inequality operator.
Definition at line 311 of file collectionMembershipQuery.h.
|
inline |
Equality operator.
Definition at line 298 of file collectionMembershipQuery.h.
|
inline |
Definition at line 275 of file collectionMembershipQuery.h.
|
inline |
Definition at line 280 of file collectionMembershipQuery.h.
|
inline |
Return true if this query uses the explicit path-expansion rule method to determine collection membership. Otherwise, return false if it uses the pattern-based membership expression to determine membership.
Definition at line 270 of file collectionMembershipQuery.h.