LLVM: llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT (original) (raw)
A utility class used to implement an iterator that contains some base object and an index. More...
#include "[llvm/ADT/STLExtras.h](STLExtras%5F8h%5Fsource.html)"
| 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 |
| Additional Inherited Members | |
|---|---|
| Public Types inherited from llvm::iterator_facade_base< DerivedT, std::random_access_iterator_tag, T, std::ptrdiff_t, T *, T & > | |
| using | iterator_category |
| using | value_type |
| using | difference_type |
| using | pointer |
| using | reference |
| Protected Types inherited from llvm::iterator_facade_base< DerivedT, std::random_access_iterator_tag, T, std::ptrdiff_t, T *, T & > | |
| enum |
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
class llvm::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >
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 1161 of file STLExtras.h.
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
◆ getBase()
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
Returns the current base of the iterator.
Definition at line 1192 of file STLExtras.h.
References base.
◆ getIndex()
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
Returns the current index of the iterator.
Definition at line 1189 of file STLExtras.h.
References index.
◆ operator+=()
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
◆ operator-()
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
◆ operator-=()
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
◆ operator<()
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
◆ operator==()
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
◆ base
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
◆ index
template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
The documentation for this class was generated from the following file:
- include/llvm/ADT/STLExtras.h