|
HDK
|
#include <pathExpressionEval.h>
Inheritance diagram for SdfPathExpressionEval< DomainType >:Classes | |
| class | IncrementalSearcher |
Public Member Functions | |
| bool | IsEmpty () const |
| template<class PathToObject > | |
| SdfPredicateFunctionResult | Match (SdfPath const &objPath, PathToObject const &pathToObj) const |
Test objPath for a match with this expression. More... | |
| template<class PathToObject > | |
| IncrementalSearcher < std::decay_t< PathToObject > > | MakeIncrementalSearcher (PathToObject &&pathToObj) const |
Public Member Functions inherited from Sdf_PathExpressionEvalBase | |
| bool | IsEmpty () const |
| operator bool () const | |
| Return true if this is not the empty evaluator, false otherwise. More... | |
Friends | |
| SdfPathExpressionEval | SdfMakePathExpressionEval (SdfPathExpression const &expr, SdfPredicateLibrary< DomainType > const &lib) |
Additional Inherited Members | |
Protected Types inherited from Sdf_PathExpressionEvalBase | |
| enum | _Op { EvalPattern, Not, Open, Close, Or, And } |
Protected Member Functions inherited from Sdf_PathExpressionEvalBase | |
| SDF_API SdfPredicateFunctionResult | _EvalExpr (TfFunctionRef< SdfPredicateFunctionResult(bool)> invokePattern) const |
Protected Attributes inherited from Sdf_PathExpressionEvalBase | |
| std::vector< _Op > | _ops |
Objects of this class evaluate complete SdfPathExpressions. See SdfMakePathExpressionEval() to create instances of this class, passing the expression to evaluate and an SdfPredicateLibrary to evaluate any embedded predicates.
Definition at line 29 of file pathExpressionEval.h.
|
inline |
Definition at line 257 of file pathExpressionEval.h.
|
inline |
Create an IncrementalSearcher object, using pathToObject to map DomainType instances to their paths.
Definition at line 352 of file pathExpressionEval.h.
|
inline |
Test objPath for a match with this expression.
Definition at line 264 of file pathExpressionEval.h.
|
friend |
Make an SdfPathExpressionEval object to evaluate expr using lib to link any embedded predicate expressions.
Create an SdfPathExpressionEval object that can evaluate the complete SdfPathExpression expr on DomainType instances, using lib, an SdfPredicateLibrary<DomainType> to evaluate any embedded predicates.
Note that expr must be "complete", meaning that SdfPathExpression::IsComplete() must return true. If an evaluator cannot succesfully be made, possibly because the passed is not complete, or if any embedded SdfPredicateExpression s cannot be successfully linked with lib, or another reason, issue an error and return the empty SdfPathExpressionEval object. See SdfPathExpressionEval::IsEmpty().
Definition at line 374 of file pathExpressionEval.h.