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

#include <AH/Containers/Array.hpp>

Collaboration diagram for 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

using difference_type = std::ptrdiff_t

Definition at line 192 of file Array.hpp.

◆ value_type

using value_type = T

Definition at line 193 of file Array.hpp.

◆ pointer

Definition at line 194 of file Array.hpp.

◆ reference

Definition at line 195 of file Array.hpp.

◆ iterator_category

using iterator_category = std::random_access_iterator_tag

Definition at line 196 of file Array.hpp.

Constructor & Destructor Documentation

◆ Iterator()

Iterator ( ElementPtrType  ptr)
inline

Definition at line 190 of file Array.hpp.

Member Function Documentation

◆ operator!=()

bool operator!= ( Iterator  rhs) const
inline

Definition at line 198 of file Array.hpp.

◆ operator==()

bool operator== ( Iterator  rhs) const
inline

Definition at line 199 of file Array.hpp.

◆ operator*()

reference operator* ( ) const
inline

Definition at line 201 of file Array.hpp.

◆ operator++()

Iterator& operator++ ( )
inline

Definition at line 203 of file Array.hpp.

◆ operator--()

Iterator& operator-- ( )
inline

Definition at line 208 of file Array.hpp.

◆ operator-() [1/2]

difference_type operator- ( Iterator  rhs) const
inline

Definition at line 213 of file Array.hpp.

◆ operator+()

Iterator operator+ ( difference_type  rhs) const
inline

Definition at line 217 of file Array.hpp.

◆ operator-() [2/2]

Iterator operator- ( difference_type  rhs) const
inline

Definition at line 221 of file Array.hpp.

◆ operator<()

bool operator< ( Iterator  rhs) const
inline

Definition at line 225 of file Array.hpp.

Member Data Documentation

◆ ptr

ElementPtrType ptr
private

Definition at line 230 of file Array.hpp.


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