LLVM 18.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 = IteratorCategoryT |
using | value_type = T |
using | difference_type = DifferenceTypeT |
using | pointer = PointerT |
using | reference = ReferenceT |
![]() | |
enum | { IsRandomAccess , IsBidirectional } |
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 1196 of file STLExtras.h.
|
inlineprotected |
Definition at line 1229 of file STLExtras.h.
|
inline |
Returns the current base of the iterator.
Definition at line 1226 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::base.
|
inline |
Returns the current index of the iterator.
Definition at line 1223 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1213 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1201 of file STLExtras.h.
References assert(), llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::base, and llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1217 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1208 of file STLExtras.h.
References assert(), llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::base, and llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1205 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::base, and llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
protected |
Definition at line 1231 of file STLExtras.h.
Referenced by llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::getBase(), llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator-(), llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator<(), and llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator==().
|
protected |
Definition at line 1232 of file STLExtras.h.
Referenced by llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::getIndex(), llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator+=(), llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator-(), llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator-=(), llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator<(), and llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator==().