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 1203 of file STLExtras.h.
|
inlineprotected |
Definition at line 1237 of file STLExtras.h.
|
inline |
Returns the current base of the iterator.
Definition at line 1234 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 1231 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1221 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 1225 of file STLExtras.h.
References llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index.
|
inline |
Definition at line 1216 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 1212 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.
|
protected |
Definition at line 1239 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 1240 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==().