WPILibC++  unspecified
llvm::sys::path::const_iterator Class Reference

Path iterator. More...

#include <Path.h>

Inheritance diagram for llvm::sys::path::const_iterator:
Collaboration diagram for llvm::sys::path::const_iterator:

Public Member Functions

reference operator* () const
 
pointer operator-> () const
 
const_iteratoroperator++ ()
 
bool operator== (const const_iterator &RHS) const
 
bool operator!= (const const_iterator &RHS) const
 
ptrdiff_t operator- (const const_iterator &RHS) const
 Difference in bytes between this and RHS.
 

Friends

const_iterator begin (StringRef path)
 Get begin iterator over path. More...
 
const_iterator end (StringRef path)
 Get end iterator over path. More...
 

Detailed Description

Path iterator.

This is an input iterator that iterates over the individual components in path. The traversal order is as follows:

  • The root-name element, if present.
  • The root-directory element, if present.
  • Each successive filename element, if present.
  • Dot, if one or more trailing non-root slash characters are present. Traversing backwards is possible with reverse_iterator

Iteration examples. Each component is separated by ',':

/ => /
/foo => /,foo
foo/ => foo,.
/foo/bar => /,foo,bar
../ => ..,.
C:\foo\bar => C:,/,foo,bar

Friends And Related Function Documentation

const_iterator begin ( StringRef  path)
friend

Get begin iterator over path.

Parameters
pathInput path.
Returns
Iterator initialized with the first component of path.
const_iterator end ( StringRef  path)
friend

Get end iterator over path.

Parameters
pathInput path.
Returns
Iterator initialized to the end of path.

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