LLVM 20.0.0git
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]

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.
 
- 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
 
PointerProxy operator-> () const
 
ReferenceProxy operator[] (std::ptrdiff_t n) const
 

Friends

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

Additional Inherited Members

- Public Types inherited from llvm::iterator_facade_base< reverse_iterator, std::input_iterator_tag, const StringRef >
using iterator_category = std::input_iterator_tag
 
using value_type = const StringRef
 
using difference_type = std::ptrdiff_t
 
using pointer = const StringRef *
 
using reference = const StringRef &
 
- 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 99 of file Path.h.

Member Function Documentation

◆ operator*()

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

Definition at line 111 of file Path.h.

◆ operator++()

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

◆ operator-()

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

Difference in bytes between this and RHS.

Definition at line 345 of file Path.cpp.

References RHS.

◆ operator==()

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

Definition at line 340 of file Path.cpp.

References llvm::StringRef::begin(), and RHS.

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 298 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 307 of file Path.cpp.


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