Objects of this class represent SdfPath matching patterns, consisting of an SdfPath prefix followed by a sequence of components, which may contain wildcards and optional embedded predicate expressions (see SdfPredicateExpression).
More...
#include <pathExpression.h>
|
SDF_API | PathPattern () |
| Construct the empty pattern whose bool-conversion operator returns false.
|
|
SDF_API void | AppendChild (std::string const &text, SdfPredicateExpression &&predExpr) |
| Append a prim child component to this pattern, with optional predicate expression predExpr .
|
|
SDF_API void | AppendChild (std::string const &text, SdfPredicateExpression const &predExpr) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
SDF_API void | AppendChild (std::string const &text) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
SDF_API void | AppendProperty (std::string const &text, SdfPredicateExpression &&predExpr) |
| Append a prim property component to this pattern, with optional predicate expression predExpr .
|
|
SDF_API void | AppendProperty (std::string const &text, SdfPredicateExpression const &predExpr) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
SDF_API void | AppendProperty (std::string const &text) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
SdfPath const & | GetPrefix () const & |
| Return this pattern's non-speculative prefix (leading path components with no wildcards and no predicates).
|
|
SdfPath | GetPrefix () && |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
SDF_API void | SetPrefix (SdfPath &&p) |
| Set this pattern's non-speculative prefix (leading path components with no wildcards and no predicates).
|
|
void | SetPrefix (SdfPath const &p) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
SDF_API std::string | GetText () const |
| Return the string representation of this pattern.
|
|
std::vector< Component > const & | GetComponents () const & |
|
std::vector< Component > | GetComponents () && |
|
std::vector< SdfPredicateExpression > const & | GetPredicateExprs () const & |
|
std::vector< SdfPredicateExpression > | GetPredicateExprs () && |
|
bool | IsProperty () const |
|
| operator bool () const |
| Return true if this pattern is not empty, false if it is.
|
|
Objects of this class represent SdfPath matching patterns, consisting of an SdfPath prefix followed by a sequence of components, which may contain wildcards and optional embedded predicate expressions (see SdfPredicateExpression).
Definition at line 80 of file pathExpression.h.
◆ PathPattern()
Construct the empty pattern whose bool-conversion operator returns false.
◆ AppendChild() [1/3]
SDF_API void AppendChild |
( |
std::string const & |
text | ) |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ AppendChild() [2/3]
Append a prim child component to this pattern, with optional predicate expression predExpr
.
If this pattern does not yet contain any wildcards or components with predicate expressions, and the input text does not contain wildcards, and predExpr
is empty, then append a child component to this pattern's prefix path (see GetPrefix()). Otherwise append this component to the sequence of components.
◆ AppendChild() [3/3]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ AppendProperty() [1/3]
SDF_API void AppendProperty |
( |
std::string const & |
text | ) |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ AppendProperty() [2/3]
Append a prim property component to this pattern, with optional predicate expression predExpr
.
If this pattern does not yet contain any wildcards or components with predicate expressions, and the input text does not contain wildcards, and predExpr
is empty, then append a property component to this pattern's prefix path (see GetPrefix()). Otherwise append this component to the sequence of components.
◆ AppendProperty() [3/3]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ GetComponents() [1/2]
std::vector< Component > GetComponents |
( |
| ) |
&& |
|
inline |
◆ GetComponents() [2/2]
std::vector< Component > const & GetComponents |
( |
| ) |
const & |
|
inline |
◆ GetPredicateExprs() [1/2]
◆ GetPredicateExprs() [2/2]
◆ GetPrefix() [1/2]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 167 of file pathExpression.h.
◆ GetPrefix() [2/2]
SdfPath const & GetPrefix |
( |
| ) |
const & |
|
inline |
Return this pattern's non-speculative prefix (leading path components with no wildcards and no predicates).
Definition at line 162 of file pathExpression.h.
◆ GetText()
SDF_API std::string GetText |
( |
| ) |
const |
Return the string representation of this pattern.
◆ IsProperty()
bool IsProperty |
( |
| ) |
const |
|
inline |
◆ operator bool()
Return true if this pattern is not empty, false if it is.
Definition at line 208 of file pathExpression.h.
◆ SetPrefix() [1/2]
SDF_API void SetPrefix |
( |
SdfPath && |
p | ) |
|
Set this pattern's non-speculative prefix (leading path components with no wildcards and no predicates).
◆ SetPrefix() [2/2]
void SetPrefix |
( |
SdfPath const & |
p | ) |
|
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 177 of file pathExpression.h.
◆ operator!=
◆ operator==
◆ swap
◆ TfHashAppend
void TfHashAppend |
( |
HashState & |
h, |
|
|
PathPattern const & |
pat |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: