Control Surface  1.1.0
MIDI Control Surface library for Arduino
Public Types | Public Member Functions | Private Attributes | List of all members
AH::ArraySlice< T, N, Reverse, Const >::Iterator Class Reference

#include <Array.hpp>

Collaboration diagram for AH::ArraySlice< T, N, Reverse, Const >::Iterator:

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = T
 
using pointer = ElementPtrType
 
using reference = ElementRefType
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

 Iterator (ElementPtrType ptr)
 
bool operator!= (Iterator rhs) const
 
bool operator== (Iterator rhs) const
 
reference operator* () const
 
Iteratoroperator++ ()
 
Iteratoroperator-- ()
 
difference_type operator- (Iterator rhs) const
 
Iterator operator+ (difference_type rhs) const
 
Iterator operator- (difference_type rhs) const
 
bool operator< (Iterator rhs) const
 

Private Attributes

ElementPtrType ptr
 

Detailed Description

template<class T, size_t N, bool Reverse = false, bool Const = true>
class AH::ArraySlice< T, N, Reverse, Const >::Iterator

Definition at line 188 of file Array.hpp.

Member Typedef Documentation

◆ difference_type

template<class T, size_t N, bool Reverse = false, bool Const = true>
using AH::ArraySlice< T, N, Reverse, Const >::Iterator::difference_type = std::ptrdiff_t

Definition at line 192 of file Array.hpp.

◆ value_type

template<class T, size_t N, bool Reverse = false, bool Const = true>
using AH::ArraySlice< T, N, Reverse, Const >::Iterator::value_type = T

Definition at line 193 of file Array.hpp.

◆ pointer

template<class T, size_t N, bool Reverse = false, bool Const = true>
using AH::ArraySlice< T, N, Reverse, Const >::Iterator::pointer = ElementPtrType

Definition at line 194 of file Array.hpp.

◆ reference

template<class T, size_t N, bool Reverse = false, bool Const = true>
using AH::ArraySlice< T, N, Reverse, Const >::Iterator::reference = ElementRefType

Definition at line 195 of file Array.hpp.

◆ iterator_category

template<class T, size_t N, bool Reverse = false, bool Const = true>
using AH::ArraySlice< T, N, Reverse, Const >::Iterator::iterator_category = std::random_access_iterator_tag

Definition at line 196 of file Array.hpp.

Constructor & Destructor Documentation

◆ Iterator()

template<class T, size_t N, bool Reverse = false, bool Const = true>
AH::ArraySlice< T, N, Reverse, Const >::Iterator::Iterator ( ElementPtrType  ptr)
inline

Definition at line 190 of file Array.hpp.

Member Function Documentation

◆ operator!=()

template<class T, size_t N, bool Reverse = false, bool Const = true>
bool AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator!= ( Iterator  rhs) const
inline

Definition at line 198 of file Array.hpp.

◆ operator==()

template<class T, size_t N, bool Reverse = false, bool Const = true>
bool AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator== ( Iterator  rhs) const
inline

Definition at line 199 of file Array.hpp.

◆ operator*()

template<class T, size_t N, bool Reverse = false, bool Const = true>
reference AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator* ( ) const
inline

Definition at line 201 of file Array.hpp.

◆ operator++()

template<class T, size_t N, bool Reverse = false, bool Const = true>
Iterator& AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator++ ( )
inline

Definition at line 203 of file Array.hpp.

◆ operator--()

template<class T, size_t N, bool Reverse = false, bool Const = true>
Iterator& AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator-- ( )
inline

Definition at line 208 of file Array.hpp.

◆ operator-() [1/2]

template<class T, size_t N, bool Reverse = false, bool Const = true>
difference_type AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator- ( Iterator  rhs) const
inline

Definition at line 213 of file Array.hpp.

◆ operator+()

template<class T, size_t N, bool Reverse = false, bool Const = true>
Iterator AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator+ ( difference_type  rhs) const
inline

Definition at line 217 of file Array.hpp.

◆ operator-() [2/2]

template<class T, size_t N, bool Reverse = false, bool Const = true>
Iterator AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator- ( difference_type  rhs) const
inline

Definition at line 221 of file Array.hpp.

◆ operator<()

template<class T, size_t N, bool Reverse = false, bool Const = true>
bool AH::ArraySlice< T, N, Reverse, Const >::Iterator::operator< ( Iterator  rhs) const
inline

Definition at line 225 of file Array.hpp.

Member Data Documentation

◆ ptr

template<class T, size_t N, bool Reverse = false, bool Const = true>
ElementPtrType AH::ArraySlice< T, N, Reverse, Const >::Iterator::ptr
private

Definition at line 230 of file Array.hpp.


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