My Project
Protected Member Functions | List of all members
mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT > Class Template Reference

#include <Attributes.h>

Inheritance diagram for mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >:
Inheritance graph
[legend]
Collaboration diagram for mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >:
Collaboration graph
[legend]

Protected Member Functions

 DenseElementIndexedIteratorImpl (const char *data, bool isSplat, size_t dataIndex)
 
ptrdiff_t getDataIndex () const
 
const char * getData () const
 Return the data base pointer. More...
 
- Protected Member Functions inherited from mlir::indexed_accessor_iterator< ConcreteT, DenseIterPtrAndSplat, T, PointerT, ReferenceT >
 indexed_accessor_iterator (DenseIterPtrAndSplat base, ptrdiff_t index)
 

Additional Inherited Members

- Public Member Functions inherited from mlir::indexed_accessor_iterator< ConcreteT, DenseIterPtrAndSplat, T, PointerT, ReferenceT >
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
 
ConcreteT & operator+= (ptrdiff_t offset)
 
ConcreteT & operator-= (ptrdiff_t offset)
 
ptrdiff_t getIndex () const
 Returns the current index of the iterator. More...
 
const DenseIterPtrAndSplat & getBase () const
 Returns the current base of the iterator. More...
 
- Protected Attributes inherited from mlir::indexed_accessor_iterator< ConcreteT, DenseIterPtrAndSplat, T, PointerT, ReferenceT >
DenseIterPtrAndSplat base
 
ptrdiff_t index
 

Detailed Description

template<typename ConcreteT, typename T, typename PointerT = T *, typename ReferenceT = T &>
class mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >

Impl iterator for indexed DenseElementAttr iterators that records a data pointer and data index that is adjusted for the case of a splat attribute.

Constructor & Destructor Documentation

◆ DenseElementIndexedIteratorImpl()

template<typename ConcreteT, typename T, typename PointerT = T *, typename ReferenceT = T &>
mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >::DenseElementIndexedIteratorImpl ( const char *  data,
bool  isSplat,
size_t  dataIndex 
)
inlineprotected

Member Function Documentation

◆ getData()

template<typename ConcreteT, typename T, typename PointerT = T *, typename ReferenceT = T &>
const char* mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >::getData ( ) const
inlineprotected

Return the data base pointer.

◆ getDataIndex()

template<typename ConcreteT, typename T, typename PointerT = T *, typename ReferenceT = T &>
ptrdiff_t mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >::getDataIndex ( ) const
inlineprotected

Return the current index for this iterator, adjusted for the case of a splat.


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