LLVM
15.0.0git
|
A utility class used to implement an iterator that contains some base object and an index. More...
#include "llvm/ADT/STLExtras.h"
Protected Member Functions | |
indexed_accessor_iterator (BaseT base, ptrdiff_t index) | |
Protected Attributes | |
BaseT | base |
ptrdiff_t | index |
Additional Inherited Members | |
![]() | |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = T |
using | difference_type = std::ptrdiff_t |
using | pointer = T * |
using | reference = 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 1086 of file STLExtras.h.
|
inlineprotected |
Definition at line 1119 of file STLExtras.h.
|
inline |
Returns the current base of the iterator.
Definition at line 1116 of file STLExtras.h.
|
inline |
Returns the current index of the iterator.
Definition at line 1113 of file STLExtras.h.
|
inline |
Definition at line 1103 of file STLExtras.h.
|
inline |
Definition at line 1091 of file STLExtras.h.
|
inline |
Definition at line 1107 of file STLExtras.h.
|
inline |
Definition at line 1098 of file STLExtras.h.
|
inline |
Definition at line 1095 of file STLExtras.h.
|
protected |
Definition at line 1121 of file STLExtras.h.
Referenced by llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::getBase(), llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::operator-(), llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::operator<(), and llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::operator==().
|
protected |
Definition at line 1122 of file STLExtras.h.
Referenced by llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::getIndex(), llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::operator+=(), llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::operator-(), llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::operator-=(), llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::operator<(), and llvm::indexed_accessor_iterator< iterator, BaseT, T, PointerT, ReferenceT >::operator==().