HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfPathPattern::Component Struct Reference

#include <pathPattern.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 SdfPathPattern's list of expressions. A component that returns true for IsStretch() represents an "arbitrary levels of hierarchy" element (the "//") in a path pattern.

Definition at line 66 of file pathPattern.h.

Member Function Documentation

bool SdfPathPattern::Component::IsStretch ( ) const
inline

Definition at line 67 of file pathPattern.h.

Friends And Related Function Documentation

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

Definition at line 80 of file pathPattern.h.

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

Definition at line 75 of file pathPattern.h.

void swap ( Component l,
Component r 
)
friend

Definition at line 89 of file pathPattern.h.

template<class HashState >
void TfHashAppend ( HashState &  h,
Component const &  c 
)
friend

Definition at line 85 of file pathPattern.h.

Member Data Documentation

bool SdfPathPattern::Component::isLiteral = false

Definition at line 73 of file pathPattern.h.

int SdfPathPattern::Component::predicateIndex = -1

Definition at line 72 of file pathPattern.h.

std::string SdfPathPattern::Component::text

Definition at line 71 of file pathPattern.h.


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