LLVM API Documentation
Path iterator. More...
#include <Path.h>


Public Member Functions | |
| reference | operator* () const |
| pointer | operator-> () const |
| const_iterator & | operator++ () |
| const_iterator & | operator++ (int) |
| 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. | |
| const_iterator | end (StringRef path) |
| Get end iterator over path. | |
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 ',':
| bool llvm::sys::path::const_iterator::operator!= | ( | const const_iterator & | RHS | ) | const [inline] |
| reference llvm::sys::path::const_iterator::operator* | ( | ) | const [inline] |
| const_iterator & llvm::sys::path::const_iterator::operator++ | ( | ) |
Definition at line 255 of file Path.cpp.
References llvm::sys::path::is_separator().
| const_iterator& llvm::sys::path::const_iterator::operator++ | ( | int | ) |
| ptrdiff_t llvm::sys::path::const_iterator::operator- | ( | const const_iterator & | RHS | ) | const |
| pointer llvm::sys::path::const_iterator::operator-> | ( | ) | const [inline] |
| bool llvm::sys::path::const_iterator::operator== | ( | const const_iterator & | RHS | ) | const |
Definition at line 308 of file Path.cpp.
References llvm::StringRef::begin().
| const_iterator begin | ( | StringRef | path | ) | [friend] |
Get begin iterator over path.
| path | Input path. |
Referenced by llvm::UnOpInit::Fold().
| const_iterator end | ( | StringRef | path | ) | [friend] |
Get end iterator over path.
| path | Input path. |
Referenced by llvm::UnOpInit::Fold(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::opt::OptTable::PrintHelp(), llvm::UnrollLoop(), and llvm::UnrollRuntimeLoopProlog().