|
LLVM 24.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 & > | |
| enum | |
| using | iterator_category |
| using | value_type |
| using | difference_type |
| using | pointer |
| using | reference |
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 1178 of file STLExtras.h.
|
inlineprotected |
Definition at line 1212 of file STLExtras.h.
Referenced by operator-(), operator<(), and operator==().
|
inline |
Returns the current base of the iterator.
Definition at line 1209 of file STLExtras.h.
References base.
|
inline |
Returns the current index of the iterator.
Definition at line 1206 of file STLExtras.h.
References index.
|
inline |
Definition at line 1196 of file STLExtras.h.
References index.
|
inline |
Definition at line 1183 of file STLExtras.h.
References assert(), base, index, and indexed_accessor_iterator().
|
inline |
Definition at line 1200 of file STLExtras.h.
References index.
|
inline |
Definition at line 1191 of file STLExtras.h.
References assert(), base, index, and indexed_accessor_iterator().
|
inline |
Definition at line 1187 of file STLExtras.h.
References assert(), base, index, and indexed_accessor_iterator().
|
protected |
Definition at line 1214 of file STLExtras.h.
Referenced by getBase(), indexed_accessor_iterator(), operator-(), operator<(), and operator==().
|
protected |
Definition at line 1215 of file STLExtras.h.
Referenced by getIndex(), indexed_accessor_iterator(), operator+=(), operator-(), operator-=(), operator<(), and operator==().