https://mooseframework.inl.gov
Public Member Functions | Private Attributes | List of all members
Moose::Kokkos::ArrayBase< T, dimension >::iterator Class Reference

Array iterator. More...

#include <KokkosArray.h>

Public Member Functions

KOKKOS_FUNCTION iterator (T *it)
 
KOKKOS_FUNCTION bool operator== (const iterator &other) const
 
KOKKOS_FUNCTION bool operator!= (const iterator &other) const
 
KOKKOS_FUNCTION T & operator* () const
 
KOKKOS_FUNCTION T * operator & () const
 
KOKKOS_FUNCTION iteratoroperator++ ()
 
KOKKOS_FUNCTION iterator operator++ (int)
 

Private Attributes

T * it
 

Detailed Description

template<typename T, unsigned int dimension>
class Moose::Kokkos::ArrayBase< T, dimension >::iterator

Array iterator.

Definition at line 304 of file KokkosArray.h.

Constructor & Destructor Documentation

◆ iterator()

template<typename T, unsigned int dimension>
KOKKOS_FUNCTION Moose::Kokkos::ArrayBase< T, dimension >::iterator::iterator ( T *  it)
inline

Definition at line 307 of file KokkosArray.h.

Member Function Documentation

◆ operator &()

template<typename T, unsigned int dimension>
KOKKOS_FUNCTION T* Moose::Kokkos::ArrayBase< T, dimension >::iterator::operator& ( ) const
inline

Definition at line 311 of file KokkosArray.h.

◆ operator!=()

template<typename T, unsigned int dimension>
KOKKOS_FUNCTION bool Moose::Kokkos::ArrayBase< T, dimension >::iterator::operator!= ( const iterator other) const
inline

Definition at line 309 of file KokkosArray.h.

309 { return it != other.it; }

◆ operator*()

template<typename T, unsigned int dimension>
KOKKOS_FUNCTION T& Moose::Kokkos::ArrayBase< T, dimension >::iterator::operator* ( ) const
inline

Definition at line 310 of file KokkosArray.h.

310 { return *it; }

◆ operator++() [1/2]

template<typename T, unsigned int dimension>
KOKKOS_FUNCTION iterator& Moose::Kokkos::ArrayBase< T, dimension >::iterator::operator++ ( )
inline

Definition at line 312 of file KokkosArray.h.

313  {
314  ++it;
315  return *this;
316  }

◆ operator++() [2/2]

template<typename T, unsigned int dimension>
KOKKOS_FUNCTION iterator Moose::Kokkos::ArrayBase< T, dimension >::iterator::operator++ ( int  )
inline

Definition at line 317 of file KokkosArray.h.

318  {
319  iterator pre = *this;
320  ++it;
321  return pre;
322  }
KOKKOS_FUNCTION iterator(T *it)
Definition: KokkosArray.h:307

◆ operator==()

template<typename T, unsigned int dimension>
KOKKOS_FUNCTION bool Moose::Kokkos::ArrayBase< T, dimension >::iterator::operator== ( const iterator other) const
inline

Definition at line 308 of file KokkosArray.h.

308 { return it == other.it; }

Member Data Documentation

◆ it

template<typename T, unsigned int dimension>
T* Moose::Kokkos::ArrayBase< T, dimension >::iterator::it
private

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