LLVM  8.0.1
Public Member Functions | Friends | List of all members
llvm::sys::path::reverse_iterator Class Reference

Reverse path iterator. More...

#include "llvm/Support/Path.h"

Inheritance diagram for llvm::sys::path::reverse_iterator:
Inheritance graph
[legend]
Collaboration diagram for llvm::sys::path::reverse_iterator:
Collaboration graph
[legend]

Public Member Functions

reference operator* () const
 
reverse_iteratoroperator++ ()
 
bool operator== (const reverse_iterator &RHS) const
 
ptrdiff_t operator- (const reverse_iterator &RHS) const
 Difference in bytes between this and RHS. More...
 
- Public Member Functions inherited from llvm::iterator_facade_base< reverse_iterator, std::input_iterator_tag, const StringRef >
reverse_iterator operator+ (std::ptrdiff_t n) const
 
reverse_iterator operator- (std::ptrdiff_t n) const
 
reverse_iterator & operator++ ()
 
reverse_iterator operator++ (int)
 
reverse_iterator & operator-- ()
 
reverse_iterator operator-- (int)
 
bool operator!= (const reverse_iterator &RHS) const
 
bool operator> (const reverse_iterator &RHS) const
 
bool operator<= (const reverse_iterator &RHS) const
 
bool operator>= (const reverse_iterator &RHS) const
 
const StringRefoperator-> ()
 
const StringRefoperator-> () const
 
ReferenceProxy operator[] (std::ptrdiff_t n)
 
ReferenceProxy operator[] (std::ptrdiff_t n) const
 

Friends

reverse_iterator rbegin (StringRef path, Style style)
 Get reverse begin iterator over path. More...
 
reverse_iterator rend (StringRef path)
 Get reverse end iterator over path. More...
 

Additional Inherited Members

- Protected Types inherited from llvm::iterator_facade_base< reverse_iterator, std::input_iterator_tag, const StringRef >
enum  
 

Detailed Description

Reverse path iterator.

This is an input iterator that iterates over the individual components in path in reverse order. The traversal order is exactly reversed from that of const_iterator

Definition at line 79 of file Path.h.

Member Function Documentation

◆ operator*()

reference llvm::sys::path::reverse_iterator::operator* ( ) const
inline

◆ operator++()

reverse_iterator & llvm::sys::path::reverse_iterator::operator++ ( )

Definition at line 337 of file Path.cpp.

References llvm::sys::path::is_separator(), and llvm::StringRef::npos.

◆ operator-()

ptrdiff_t llvm::sys::path::reverse_iterator::operator- ( const reverse_iterator RHS) const

Difference in bytes between this and RHS.

Definition at line 367 of file Path.cpp.

◆ operator==()

bool llvm::sys::path::reverse_iterator::operator== ( const reverse_iterator RHS) const

Definition at line 362 of file Path.cpp.

References llvm::StringRef::begin().

Friends And Related Function Documentation

◆ rbegin

reverse_iterator rbegin ( StringRef  path,
Style  style = Style::native 
)
friend

Get reverse begin iterator over path.

Parameters
pathInput path.
Returns
Iterator initialized with the first reverse component of path.

Definition at line 321 of file Path.cpp.

◆ rend

reverse_iterator rend ( StringRef  path)
friend

Get reverse end iterator over path.

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

Definition at line 329 of file Path.cpp.


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