MLIR  20.0.0git
Public Types | Public Member Functions | List of all members
mlir::detail::ElementsAttrRange< IteratorT > Class Template Reference

This class provides iterator utilities for an ElementsAttr range. More...

#include "mlir/IR/BuiltinAttributeInterfaces.h"

+ Inheritance diagram for mlir::detail::ElementsAttrRange< IteratorT >:

Public Types

using reference = typename IteratorT::reference
 

Public Member Functions

 ElementsAttrRange (ShapedType shapeType, const llvm::iterator_range< IteratorT > &range)
 
 ElementsAttrRange (ShapedType shapeType, IteratorT beginIt, IteratorT endIt)
 
reference operator[] (ArrayRef< uint64_t > index) const
 Return the value at the given index. More...
 
reference operator[] (uint64_t index) const
 
size_t size () const
 Return the size of this range. More...
 

Detailed Description

template<typename IteratorT>
class mlir::detail::ElementsAttrRange< IteratorT >

This class provides iterator utilities for an ElementsAttr range.

Definition at line 235 of file BuiltinAttributeInterfaces.h.

Member Typedef Documentation

◆ reference

template<typename IteratorT >
using mlir::detail::ElementsAttrRange< IteratorT >::reference = typename IteratorT::reference

Definition at line 237 of file BuiltinAttributeInterfaces.h.

Constructor & Destructor Documentation

◆ ElementsAttrRange() [1/2]

template<typename IteratorT >
mlir::detail::ElementsAttrRange< IteratorT >::ElementsAttrRange ( ShapedType  shapeType,
const llvm::iterator_range< IteratorT > &  range 
)
inline

Definition at line 239 of file BuiltinAttributeInterfaces.h.

◆ ElementsAttrRange() [2/2]

template<typename IteratorT >
mlir::detail::ElementsAttrRange< IteratorT >::ElementsAttrRange ( ShapedType  shapeType,
IteratorT  beginIt,
IteratorT  endIt 
)
inline

Definition at line 242 of file BuiltinAttributeInterfaces.h.

Member Function Documentation

◆ operator[]() [1/2]

template<typename IteratorT >
auto mlir::detail::ElementsAttrRange< IteratorT >::operator[] ( ArrayRef< uint64_t >  index) const

Return the value at the given index.

Definition at line 291 of file BuiltinAttributeInterfaces.h.

◆ operator[]() [2/2]

template<typename IteratorT >
reference mlir::detail::ElementsAttrRange< IteratorT >::operator[] ( uint64_t  index) const
inline

Definition at line 247 of file BuiltinAttributeInterfaces.h.

◆ size()

template<typename IteratorT >
size_t mlir::detail::ElementsAttrRange< IteratorT >::size ( ) const
inline

Return the size of this range.

Definition at line 252 of file BuiltinAttributeInterfaces.h.


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