momo  3.9
momo::internal::ArrayIndexIterator< TArray, TItem > Class Template Reference

#include <ArrayUtility.h>

Public Types

typedef ItemReference
 
typedef ItemPointer
 
typedef ArrayIndexIterator< const Array, const ItemConstIterator
 

Public Member Functions

 ArrayIndexIterator () noexcept
 
 operator ConstIterator () const noexcept
 
ArrayIndexIteratoroperator+= (ptrdiff_t diff)
 
Pointer operator-> () const
 

Protected Types

typedef TItem Item
 
typedef TArray Array
 
typedef Array::Settings Settings
 

Protected Member Functions

 ArrayIndexIterator (Array *array, size_t index) noexcept
 
ArrayptGetArray () const noexcept
 
size_t ptGetIndex () const noexcept
 

Friends

ptrdiff_t operator- (ArrayIndexIterator iter1, ArrayIndexIterator iter2)
 
bool operator== (ArrayIndexIterator iter1, ArrayIndexIterator iter2) noexcept
 
bool operator< (ArrayIndexIterator iter1, ArrayIndexIterator iter2)
 

Member Typedef Documentation

◆ Array

template<typename TArray , typename TItem >
typedef TArray momo::internal::ArrayIndexIterator< TArray, TItem >::Array
protected

◆ ConstIterator

template<typename TArray , typename TItem >
typedef ArrayIndexIterator<const Array, const Item> momo::internal::ArrayIndexIterator< TArray, TItem >::ConstIterator

◆ Item

template<typename TArray , typename TItem >
typedef TItem momo::internal::ArrayIndexIterator< TArray, TItem >::Item
protected

◆ Pointer

template<typename TArray , typename TItem >
typedef Item* momo::internal::ArrayIndexIterator< TArray, TItem >::Pointer

◆ Reference

template<typename TArray , typename TItem >
typedef Item& momo::internal::ArrayIndexIterator< TArray, TItem >::Reference

◆ Settings

template<typename TArray , typename TItem >
typedef Array::Settings momo::internal::ArrayIndexIterator< TArray, TItem >::Settings
protected

Constructor & Destructor Documentation

◆ ArrayIndexIterator() [1/2]

template<typename TArray , typename TItem >
momo::internal::ArrayIndexIterator< TArray, TItem >::ArrayIndexIterator ( )
inlineexplicitnoexcept

◆ ArrayIndexIterator() [2/2]

template<typename TArray , typename TItem >
momo::internal::ArrayIndexIterator< TArray, TItem >::ArrayIndexIterator ( Array array,
size_t  index 
)
inlineexplicitprotectednoexcept

Member Function Documentation

◆ operator ConstIterator()

template<typename TArray , typename TItem >
momo::internal::ArrayIndexIterator< TArray, TItem >::operator ConstIterator ( ) const
inlinenoexcept

◆ operator+=()

template<typename TArray , typename TItem >
ArrayIndexIterator& momo::internal::ArrayIndexIterator< TArray, TItem >::operator+= ( ptrdiff_t  diff)
inline

◆ operator->()

template<typename TArray , typename TItem >
Pointer momo::internal::ArrayIndexIterator< TArray, TItem >::operator-> ( ) const
inline

◆ ptGetArray()

template<typename TArray , typename TItem >
Array* momo::internal::ArrayIndexIterator< TArray, TItem >::ptGetArray ( ) const
inlineprotectednoexcept

◆ ptGetIndex()

template<typename TArray , typename TItem >
size_t momo::internal::ArrayIndexIterator< TArray, TItem >::ptGetIndex ( ) const
inlineprotectednoexcept

Friends And Related Function Documentation

◆ operator-

template<typename TArray , typename TItem >
ptrdiff_t operator- ( ArrayIndexIterator< TArray, TItem >  iter1,
ArrayIndexIterator< TArray, TItem >  iter2 
)
friend

◆ operator<

template<typename TArray , typename TItem >
bool operator< ( ArrayIndexIterator< TArray, TItem >  iter1,
ArrayIndexIterator< TArray, TItem >  iter2 
)
friend

◆ operator==

template<typename TArray , typename TItem >
bool operator== ( ArrayIndexIterator< TArray, TItem >  iter1,
ArrayIndexIterator< TArray, TItem >  iter2 
)
friend

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