Loading...
Searching...
No Matches
SdfPathExpression::PathPattern::Component Struct Reference

A component represents a pattern matching component past the initial SdfPath prefix. More...

#include <pathExpression.h>

Public Member Functions

bool IsStretch () const
 

Public Attributes

std::string text
 
int predicateIndex = -1
 
bool isLiteral = false
 

Friends

bool operator== (Component const &l, Component const &r)
 
bool operator!= (Component const &l, Component const &r)
 
template<class HashState >
void TfHashAppend (HashState &h, Component const &c)
 
void swap (Component &l, Component &r)
 

Detailed Description

A component represents a pattern matching component past the initial SdfPath prefix.

A component's text can contain wildcard characters, and if the component references a predicate expression, its predicateIndex indicates which one in the owning PathPattern's list of expressions. A component whose text is empty represents an "arbitrary levels of hierarchy" element (the //) in a path pattern.

Definition at line 94 of file pathExpression.h.

Member Function Documentation

◆ IsStretch()

bool IsStretch ( ) const
inline

Definition at line 95 of file pathExpression.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( Component const &  l,
Component const &  r 
)
friend

Definition at line 108 of file pathExpression.h.

◆ operator==

bool operator== ( Component const &  l,
Component const &  r 
)
friend

Definition at line 103 of file pathExpression.h.

◆ swap

void swap ( Component l,
Component r 
)
friend

Definition at line 117 of file pathExpression.h.

◆ TfHashAppend

void TfHashAppend ( HashState &  h,
Component const &  c 
)
friend

Definition at line 113 of file pathExpression.h.

Member Data Documentation

◆ isLiteral

bool isLiteral = false

Definition at line 101 of file pathExpression.h.

◆ predicateIndex

int predicateIndex = -1

Definition at line 100 of file pathExpression.h.

◆ text

std::string text

Definition at line 99 of file pathExpression.h.


The documentation for this struct was generated from the following file: