Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::IteratorWithIndex< T > Class Template Reference

Base class for an iterator that preserves the iteration index. More...

#include <arcane/accelerator/RunCommandEnumerate.h>

Inheritance diagram for Arcane::IteratorWithIndex< T >:
Collaboration diagram for Arcane::IteratorWithIndex< T >:

Public Member Functions

constexpr __host__ __device__ IteratorWithIndex (Int32 i, T v)
constexpr __host__ __device__ Int32 index () const
constexpr __host__ __device__ T value () const

Private Attributes

Int32 m_index
m_value

Detailed Description

template<typename T>
class Arcane::IteratorWithIndex< T >

Base class for an iterator that preserves the iteration index.

Definition at line 185 of file RunCommandEnumerate.h.

Constructor & Destructor Documentation

◆ IteratorWithIndex()

template<typename T>
__host__ __device__ Arcane::IteratorWithIndex< T >::IteratorWithIndex ( Int32 i,
T v )
inlineconstexpr

Definition at line 190 of file RunCommandEnumerate.h.

Member Function Documentation

◆ index()

template<typename T>
__host__ __device__ Int32 Arcane::IteratorWithIndex< T >::index ( ) const
inlineconstexpr

Definition at line 197 of file RunCommandEnumerate.h.

◆ value()

template<typename T>
__host__ __device__ T Arcane::IteratorWithIndex< T >::value ( ) const
inlineconstexpr

Definition at line 198 of file RunCommandEnumerate.h.

Member Data Documentation

◆ m_index

template<typename T>
Int32 Arcane::IteratorWithIndex< T >::m_index
private

Definition at line 202 of file RunCommandEnumerate.h.

◆ m_value

template<typename T>
T Arcane::IteratorWithIndex< T >::m_value
private

Definition at line 203 of file RunCommandEnumerate.h.


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