|
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 SdfPath & | GetPath () const |
iterator | begin () const |
iterator | end () const |
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/band
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,
../aand
... This represents the same of set of
prefix` paths as SdfPath::GetPrefixes, but in reverse order.
|
inline |