|
LLVM
4.0.0
|
Path iterator. More...
#include <Path.h>
Public Member Functions | |
| reference | operator* () const |
| pointer | operator-> () const |
| const_iterator & | operator++ () |
| 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. More... | |
Friends | |
| const_iterator | begin (StringRef path) |
| Get begin iterator over path. More... | |
| const_iterator | end (StringRef path) |
| Get end iterator over path. More... | |
Path iterator.
This is an input iterator that iterates over the individual components in path. The traversal order is as follows:
Iteration examples. Each component is separated by ',':
|
inline |
|
inline |
| const_iterator & llvm::sys::path::const_iterator::operator++ | ( | ) |
Definition at line 248 of file Path.cpp.
References assert(), and llvm::sys::path::is_separator().
| ptrdiff_t llvm::sys::path::const_iterator::operator- | ( | const const_iterator & | RHS | ) | const |
|
inline |
| bool llvm::sys::path::const_iterator::operator== | ( | const const_iterator & | RHS | ) | const |
Definition at line 301 of file Path.cpp.
References llvm::StringRef::begin().
|
friend |
|
friend |
Get end iterator over path.
| path | Input path. |
Definition at line 241 of file Path.cpp.
Referenced by llvm::MipsRegisterInfo::getReservedRegs(), and llvm::opt::OptTable::PrintHelp().
1.8.6