HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pathExpressionEval.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/sdf/api.h"
#include "pxr/usd/sdf/path.h"
#include "pxr/usd/sdf/pathExpression.h"
#include "pxr/usd/sdf/predicateExpression.h"
#include "pxr/usd/sdf/predicateProgram.h"
#include "pxr/base/arch/regex.h"
#include "pxr/base/tf/functionRef.h"
#include <string>
#include <type_traits>
#include <vector>
+ Include dependency graph for pathExpressionEval.h:

Go to the source code of this file.

Classes

class  SdfPathExpressionEval< DomainType >
 
class  Sdf_PathExpressionEvalBase
 
class  Sdf_PathExpressionEvalBase::_PatternMatchBase
 
struct  Sdf_PathExpressionEvalBase::_PatternMatchBase::_Component
 
class  SdfPathExpressionEval< DomainType >
 

Functions

template<class DomainType >
SdfPathExpressionEval< DomainType > SdfMakePathExpressionEval (SdfPathExpression const &expr, SdfPredicateLibrary< DomainType > const &lib)
 
SDF_API bool Sdf_MakePathExpressionEvalImpl (Sdf_PathExpressionEvalBase &eval, SdfPathExpression const &expr, TfFunctionRef< void(SdfPathExpression::PathPattern const &)> translatePattern)
 

Function Documentation

SDF_API bool Sdf_MakePathExpressionEvalImpl ( Sdf_PathExpressionEvalBase eval,
SdfPathExpression const expr,
TfFunctionRef< void(SdfPathExpression::PathPattern const &)>  translatePattern 
)
template<class DomainType >
SdfPathExpressionEval< DomainType > SdfMakePathExpressionEval ( SdfPathExpression const expr,
SdfPredicateLibrary< DomainType > const lib 
)

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 258 of file pathExpressionEval.h.