MLIR  19.0.0git
Public Member Functions | List of all members
mlir::detail::ElementsAttrIterator< T > Class Template Reference

This class implements a generic iterator for ElementsAttr. More...

#include "mlir/IR/BuiltinAttributeInterfaces.h"

+ Inheritance diagram for mlir::detail::ElementsAttrIterator< T >:

Public Member Functions

 ElementsAttrIterator (ElementsAttrIndexer indexer, size_t dataIndex)
 
ptrdiff_t operator- (const ElementsAttrIterator &rhs) const
 
bool operator== (const ElementsAttrIterator &rhs) const
 
bool operator< (const ElementsAttrIterator &rhs) const
 
ElementsAttrIteratoroperator+= (ptrdiff_t offset)
 
ElementsAttrIteratoroperator-= (ptrdiff_t offset)
 
operator* () const
 Return the value at the current iterator position. More...
 

Detailed Description

template<typename T>
class mlir::detail::ElementsAttrIterator< T >

This class implements a generic iterator for ElementsAttr.

Definition at line 199 of file BuiltinAttributeInterfaces.h.

Constructor & Destructor Documentation

◆ ElementsAttrIterator()

template<typename T >
mlir::detail::ElementsAttrIterator< T >::ElementsAttrIterator ( ElementsAttrIndexer  indexer,
size_t  dataIndex 
)
inline

Definition at line 204 of file BuiltinAttributeInterfaces.h.

Member Function Documentation

◆ operator*()

template<typename T >
T mlir::detail::ElementsAttrIterator< T >::operator* ( ) const
inline

Return the value at the current iterator position.

Definition at line 227 of file BuiltinAttributeInterfaces.h.

References mlir::detail::ElementsAttrIndexer::at().

◆ operator+=()

template<typename T >
ElementsAttrIterator& mlir::detail::ElementsAttrIterator< T >::operator+= ( ptrdiff_t  offset)
inline

Definition at line 217 of file BuiltinAttributeInterfaces.h.

◆ operator-()

template<typename T >
ptrdiff_t mlir::detail::ElementsAttrIterator< T >::operator- ( const ElementsAttrIterator< T > &  rhs) const
inline

Definition at line 208 of file BuiltinAttributeInterfaces.h.

◆ operator-=()

template<typename T >
ElementsAttrIterator& mlir::detail::ElementsAttrIterator< T >::operator-= ( ptrdiff_t  offset)
inline

Definition at line 221 of file BuiltinAttributeInterfaces.h.

◆ operator<()

template<typename T >
bool mlir::detail::ElementsAttrIterator< T >::operator< ( const ElementsAttrIterator< T > &  rhs) const
inline

Definition at line 214 of file BuiltinAttributeInterfaces.h.

◆ operator==()

template<typename T >
bool mlir::detail::ElementsAttrIterator< T >::operator== ( const ElementsAttrIterator< T > &  rhs) const
inline

Definition at line 211 of file BuiltinAttributeInterfaces.h.


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