LLVM 20.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 | |
Public Types inherited from llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT > | |
using | iterator_category = IteratorCategoryT |
using | value_type = T |
using | difference_type = DifferenceTypeT |
using | pointer = PointerT |
using | reference = ReferenceT |
Protected Types inherited from llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, 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 1187 of file STLExtras.h.
|
inlineprotected |
Definition at line 1220 of file STLExtras.h.
|
inline |
Returns the current base of the iterator.
Definition at line 1217 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 1214 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1204 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1192 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 1208 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1199 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 1196 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 1222 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 1223 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==().