CIRCT 20.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
PyLocationVecIterator Class Reference
Collaboration diagram for PyLocationVecIterator:
Collaboration graph
[legend]

Public Member Functions

 PyLocationVecIterator (MlirAttribute attr)
 
PyLocationVecIteratordunderIter ()
 
std::optional< MlirAttribute > dunderNext ()
 

Static Public Member Functions

static std::optional< MlirAttribute > getItem (MlirAttribute locVec, intptr_t pos)
 Get item at the specified position, translating a nullptr to None.
 
static void bind (nb::module_ &m)
 

Private Attributes

MlirAttribute attr
 
intptr_t nextIndex = 0
 

Detailed Description

Definition at line 115 of file MSFTModule.cpp.

Constructor & Destructor Documentation

◆ PyLocationVecIterator()

PyLocationVecIterator::PyLocationVecIterator ( MlirAttribute  attr)
inline

Definition at line 126 of file MSFTModule.cpp.

Member Function Documentation

◆ bind()

static void PyLocationVecIterator::bind ( nb::module_ &  m)
inlinestatic

Definition at line 136 of file MSFTModule.cpp.

References dunderIter(), and dunderNext().

◆ dunderIter()

PyLocationVecIterator & PyLocationVecIterator::dunderIter ( )
inline

Definition at line 127 of file MSFTModule.cpp.

Referenced by bind().

◆ dunderNext()

std::optional< MlirAttribute > PyLocationVecIterator::dunderNext ( )
inline

Definition at line 129 of file MSFTModule.cpp.

References attr, circtMSFTLocationVectorAttrGetNumElements(), getItem(), and nextIndex.

Referenced by bind().

◆ getItem()

static std::optional< MlirAttribute > PyLocationVecIterator::getItem ( MlirAttribute  locVec,
intptr_t  pos 
)
inlinestatic

Get item at the specified position, translating a nullptr to None.

Definition at line 118 of file MSFTModule.cpp.

References circtMSFTLocationVectorAttrGetElement().

Referenced by dunderNext().

Member Data Documentation

◆ attr

MlirAttribute PyLocationVecIterator::attr
private

Definition at line 143 of file MSFTModule.cpp.

Referenced by dunderNext().

◆ nextIndex

intptr_t PyLocationVecIterator::nextIndex = 0
private

Definition at line 144 of file MSFTModule.cpp.

Referenced by dunderNext().


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