IndexIterator< T, ARRAY, ACCESS > Class Template Reference

#include <indexiterator.h>

Inheritance diagram for IndexIterator< T, ARRAY, ACCESS >:

Public Member Functions

 IndexIterator (ARRAY &array, Int start, Int end)
 
 IndexIterator (const IndexIterator &src)
 
 MAXON_OPERATOR_COPY_ASSIGNMENT (IndexIterator)
 
void operator++ ()
 
 operator Bool () const
 
operator* () const
 
std::remove_reference< T >::typeoperator-> () const
 
Bool operator== (const IndexIterator &other) const
 
Bool operator!= (const IndexIterator &other) const
 
- Public Member Functions inherited from ForEachIterator< IndexIterator< T, ARRAY, IndexIteratorDefaultAccess > >
MAXON_ATTRIBUTE_FORCE_INLINE ForEachIterator (ARGS &&... args)
 
String ToString (const FormatStatement *formatStatement=nullptr)
 
IndexIterator< T, ARRAY, IndexIteratorDefaultAccess > & Find (const T &v)
 
Int FindIndex (const T &v)
 
MAXON_ATTRIBUTE_FORCE_INLINE Bool Contains (const T &v)
 
MAXON_ATTRIBUTE_FORCE_INLINE Wrapper begin ()
 

Private Attributes

ARRAY * _array
 
Int _index
 
Int _end
 

Additional Inherited Members

- Public Types inherited from ForEachIterator< IndexIterator< T, ARRAY, IndexIteratorDefaultAccess > >
using IsForEachIterator = std::true_type
 
- Static Public Member Functions inherited from ForEachIterator< IndexIterator< T, ARRAY, IndexIteratorDefaultAccess > >
static MAXON_ATTRIBUTE_FORCE_INLINE PRIVATE_MAXON_RBF_SENTINEL (Wrapper) end()
 

Constructor & Destructor Documentation

◆ IndexIterator() [1/2]

IndexIterator ( ARRAY &  array,
Int  start,
Int  end 
)

◆ IndexIterator() [2/2]

IndexIterator ( const IndexIterator< T, ARRAY, ACCESS > &  src)

Member Function Documentation

◆ MAXON_OPERATOR_COPY_ASSIGNMENT()

MAXON_OPERATOR_COPY_ASSIGNMENT ( IndexIterator< T, ARRAY, ACCESS >  )

◆ operator++()

void operator++ ( )

◆ operator Bool()

operator Bool ( ) const
explicit

◆ operator*()

T operator* ( ) const

◆ operator->()

std::remove_reference<T>::type* operator-> ( void  ) const

◆ operator==()

Bool operator== ( const IndexIterator< T, ARRAY, ACCESS > &  other) const

◆ operator!=()

Bool operator!= ( const IndexIterator< T, ARRAY, ACCESS > &  other) const

Member Data Documentation

◆ _array

ARRAY* _array
private

◆ _index

Int _index
private

◆ _end

Int _end
private