LLVM 22.0.0git
|
A utility class used to implement an iterator that contains some base object and an index. More...
#include "llvm/ADT/STLExtras.h"
Public Member Functions | |
ptrdiff_t | operator- (const indexed_accessor_iterator &rhs) const |
bool | operator== (const indexed_accessor_iterator &rhs) const |
bool | operator< (const indexed_accessor_iterator &rhs) const |
DerivedT & | operator+= (ptrdiff_t offset) |
DerivedT & | operator-= (ptrdiff_t offset) |
ptrdiff_t | getIndex () const |
Returns the current index of the iterator. | |
const BaseT & | getBase () const |
Returns the current base of the iterator. | |
Public Member Functions inherited from llvm::iterator_facade_base< DerivedT, std::random_access_iterator_tag, T, std::ptrdiff_t, T *, T & > | |
DerivedT | operator+ (std::ptrdiff_t n) const |
DerivedT | operator- (std::ptrdiff_t n) const |
DerivedT & | operator++ () |
DerivedT & | operator-- () |
bool | operator!= (const DerivedT &RHS) const |
bool | operator> (const DerivedT &RHS) const |
bool | operator<= (const DerivedT &RHS) const |
bool | operator>= (const DerivedT &RHS) const |
PointerProxy | operator-> () const |
ReferenceProxy | operator[] (std::ptrdiff_t n) const |
Protected Member Functions | |
indexed_accessor_iterator (BaseT base, ptrdiff_t index) |
Protected Attributes | |
BaseT | base |
ptrdiff_t | index |
Additional Inherited Members | |
Public Types inherited from llvm::iterator_facade_base< DerivedT, std::random_access_iterator_tag, T, std::ptrdiff_t, T *, T & > | |
using | iterator_category |
using | value_type |
using | difference_type |
using | pointer |
using | reference |
Protected Types inherited from llvm::iterator_facade_base< DerivedT, std::random_access_iterator_tag, T, std::ptrdiff_t, T *, T & > | |
enum |
A utility class used to implement an iterator that contains some base object and an index.
The iterator moves the index but keeps the base constant.
Definition at line 1171 of file STLExtras.h.
|
inlineprotected |
Definition at line 1205 of file STLExtras.h.
Referenced by operator-(), operator<(), and operator==().
|
inline |
Returns the current base of the iterator.
Definition at line 1202 of file STLExtras.h.
References base.
|
inline |
Returns the current index of the iterator.
Definition at line 1199 of file STLExtras.h.
References index.
|
inline |
Definition at line 1189 of file STLExtras.h.
References index.
|
inline |
Definition at line 1176 of file STLExtras.h.
References assert(), base, index, and indexed_accessor_iterator().
|
inline |
Definition at line 1193 of file STLExtras.h.
References index.
|
inline |
Definition at line 1184 of file STLExtras.h.
References assert(), base, index, and indexed_accessor_iterator().
|
inline |
Definition at line 1180 of file STLExtras.h.
References assert(), base, index, and indexed_accessor_iterator().
|
protected |
Definition at line 1207 of file STLExtras.h.
Referenced by getBase(), indexed_accessor_iterator(), operator-(), operator<(), and operator==().
|
protected |
Definition at line 1208 of file STLExtras.h.
Referenced by getIndex(), indexed_accessor_iterator(), operator+=(), operator-(), operator-=(), operator<(), and operator==().