Loading...
Searching...
No Matches
SdfPathAncestorsRange Class Reference

Range representing a path and ancestors, and providing methods for iterating over them. More...

#include <path.h>

Public Member Functions

 SdfPathAncestorsRange (const SdfPath &path)
 
const SdfPathGetPath () const
 
iterator begin () const
 
iterator end () const
 

Detailed Description

Range representing a path and ancestors, and providing methods for iterating over them.

An ancestor range represents a path and all of its ancestors ordered from nearest to furthest (root-most). For example, given a path like /a/b.prop, the range represents paths /a/b.prop, /a/b and /a, in that order. A range accepts relative paths as well: For path a/b.prop, the range represents paths a/b.prop, a/b and a. If a path contains parent path elements, (..), those elements are treated as elements of the range. For instance, given path ../a/b, the range represents paths ../a/b, ../a and ... This represents the same of set of prefix paths as SdfPath::GetPrefixes, but in reverse order.

Definition at line 1079 of file path.h.

Constructor & Destructor Documentation

◆ SdfPathAncestorsRange()

SdfPathAncestorsRange ( const SdfPath path)
inline

Definition at line 1083 of file path.h.

Member Function Documentation

◆ begin()

iterator begin ( ) const
inline

Definition at line 1120 of file path.h.

◆ end()

iterator end ( ) const
inline

Definition at line 1122 of file path.h.

◆ GetPath()

const SdfPath & GetPath ( ) const
inline

Definition at line 1086 of file path.h.


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