My Project
Public Member Functions | List of all members
mlir::DenseElementsAttr::ElementIterator< T > Class Template Reference

#include <Attributes.h>

Inheritance diagram for mlir::DenseElementsAttr::ElementIterator< T >:
Inheritance graph
[legend]
Collaboration diagram for mlir::DenseElementsAttr::ElementIterator< T >:
Collaboration graph
[legend]

Public Member Functions

const T & operator* () const
 Accesses the raw value at this iterator position. More...
 
- Public Member Functions inherited from mlir::indexed_accessor_iterator< ElementIterator< T >, DenseIterPtrAndSplat, const T, const T *, const T & >
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
 
ElementIterator< T > & operator+= (ptrdiff_t offset)
 
ElementIterator< T > & 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...
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::detail::DenseElementIndexedIteratorImpl< ElementIterator< T >, const T >
 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< ElementIterator< T >, DenseIterPtrAndSplat, const T, const T *, const T & >
 indexed_accessor_iterator (DenseIterPtrAndSplat base, ptrdiff_t index)
 
- Protected Attributes inherited from mlir::indexed_accessor_iterator< ElementIterator< T >, DenseIterPtrAndSplat, const T, const T *, const T & >
DenseIterPtrAndSplat base
 
ptrdiff_t index
 

Detailed Description

template<typename T>
class mlir::DenseElementsAttr::ElementIterator< T >

Iterator for walking raw element values of the specified type 'T', which may be any c++ data type matching the stored representation: int32_t, float, etc.

Member Function Documentation

◆ operator*()

template<typename T>
const T& mlir::DenseElementsAttr::ElementIterator< T >::operator* ( void  ) const
inline

Accesses the raw value at this iterator position.


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