My Project
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT > Class Template Reference

#include <STLExtras.h>

Inheritance diagram for mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >:
Inheritance graph
[legend]
Collaboration diagram for mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >:
Collaboration graph
[legend]

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. More...
 
const BaseT & getBase () const
 Returns the current base of the iterator. More...
 

Protected Member Functions

 indexed_accessor_iterator (BaseT base, ptrdiff_t index)
 

Protected Attributes

BaseT base
 
ptrdiff_t index
 

Detailed Description

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
class mlir::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.

Constructor & Destructor Documentation

◆ indexed_accessor_iterator()

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::indexed_accessor_iterator ( BaseT  base,
ptrdiff_t  index 
)
inlineprotected

Member Function Documentation

◆ getBase()

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
const BaseT& mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::getBase ( ) const
inline

Returns the current base of the iterator.

◆ getIndex()

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
ptrdiff_t mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::getIndex ( ) const
inline

Returns the current index of the iterator.

◆ operator+=()

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
DerivedT& mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator+= ( ptrdiff_t  offset)
inline

◆ operator-()

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
ptrdiff_t mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator- ( const indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT > &  rhs) const
inline

◆ operator-=()

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
DerivedT& mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator-= ( ptrdiff_t  offset)
inline

◆ operator<()

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
bool mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator< ( const indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT > &  rhs) const
inline

◆ operator==()

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
bool mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::operator== ( const indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT > &  rhs) const
inline

Member Data Documentation

◆ base

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
BaseT mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::base
protected

◆ index

template<typename DerivedT, typename BaseT, typename T, typename PointerT = T *, typename ReferenceT = T &>
ptrdiff_t mlir::indexed_accessor_iterator< DerivedT, BaseT, T, PointerT, ReferenceT >::index
protected

The documentation for this class was generated from the following file: