MLIR  20.0.0git
Public Member Functions | List of all members
mlir::RaggedArray< T >::iterator Class Reference

Iterator over the rows. More...

#include "mlir/Dialect/Transform/Utils/RaggedArray.h"

+ Inheritance diagram for mlir::RaggedArray< T >::iterator:

Public Member Functions

 iterator (RaggedArray &ragged)
 Creates the start iterator. More...
 
 iterator (RaggedArray &ragged, size_t pos)
 Creates the end iterator. More...
 
MutableArrayRef< T > operator* () const
 Dereferences the current iterator. Assumes in-bounds. More...
 
iteratoroperator++ ()
 Increments the iterator. More...
 
bool operator== (const iterator &other) const
 Compares the two iterators. More...
 

Detailed Description

template<typename T>
class mlir::RaggedArray< T >::iterator

Iterator over the rows.

Definition at line 43 of file RaggedArray.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<typename T >
mlir::RaggedArray< T >::iterator::iterator ( RaggedArray ragged)
inlineexplicit

Creates the start iterator.

Definition at line 49 of file RaggedArray.h.

◆ iterator() [2/2]

template<typename T >
mlir::RaggedArray< T >::iterator::iterator ( RaggedArray ragged,
size_t  pos 
)
inline

Creates the end iterator.

Definition at line 52 of file RaggedArray.h.

Member Function Documentation

◆ operator*()

template<typename T >
MutableArrayRef<T> mlir::RaggedArray< T >::iterator::operator* ( ) const
inline

Dereferences the current iterator. Assumes in-bounds.

Definition at line 55 of file RaggedArray.h.

◆ operator++()

template<typename T >
iterator& mlir::RaggedArray< T >::iterator::operator++ ( )
inline

Increments the iterator.

Definition at line 58 of file RaggedArray.h.

◆ operator==()

template<typename T >
bool mlir::RaggedArray< T >::iterator::operator== ( const iterator other) const
inline

Compares the two iterators.

Iterators into different ragged arrays compare not equal.

Definition at line 66 of file RaggedArray.h.


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