Arduino Filters master
Filter library for Arduino
Public Types | Public Member Functions | Private Attributes | Related Functions | List of all members
ArraySlice< T, N, Reverse, Const >::Iterator Class Reference

#include <AH/Containers/Array.hpp>

Detailed Description

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

Definition at line 188 of file 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
 
pointer operator-> () const
 
reference operator[] (difference_type n) const
 
Iteratoroperator++ ()
 
Iteratoroperator-- ()
 
Iterator operator++ (int)
 
Iterator operator-- (int)
 
Iteratoroperator+= (difference_type n)
 
Iteratoroperator-= (difference_type n)
 
difference_type operator- (Iterator rhs) const
 
Iterator operator+ (difference_type rhs) const
 
Iterator operator- (difference_type rhs) const
 
bool operator< (Iterator rhs) const
 
bool operator> (Iterator rhs) const
 
bool operator<= (Iterator rhs) const
 
bool operator>= (Iterator rhs) const
 

Private Attributes

ElementPtrType ptr
 

Related Functions

(Note that these are not member functions.)

template<class T , size_t N, bool Reverse, bool Const>
ArraySlice< T, N, Reverse, Const >::Iterator operator+ (typename ArraySlice< T, N, Reverse, Const >::Iterator::difference_type n, typename ArraySlice< T, N, Reverse, Const >::Iterator a)
 

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->()

pointer operator-> ( ) const
inline

Definition at line 202 of file Array.hpp.

◆ operator[]()

reference operator[] ( difference_type  n) const
inline

Definition at line 204 of file Array.hpp.

◆ operator++() [1/2]

Iterator & operator++ ( )
inline

Definition at line 206 of file Array.hpp.

◆ operator--() [1/2]

Iterator & operator-- ( )
inline

Definition at line 211 of file Array.hpp.

◆ operator++() [2/2]

Iterator operator++ ( int  )
inline

Definition at line 216 of file Array.hpp.

◆ operator--() [2/2]

Iterator operator-- ( int  )
inline

Definition at line 222 of file Array.hpp.

◆ operator+=()

Iterator & operator+= ( difference_type  n)
inline

Definition at line 228 of file Array.hpp.

◆ operator-=()

Iterator & operator-= ( difference_type  n)
inline

Definition at line 233 of file Array.hpp.

◆ operator-() [1/2]

difference_type operator- ( Iterator  rhs) const
inline

Definition at line 238 of file Array.hpp.

◆ operator+()

Iterator operator+ ( difference_type  rhs) const
inline

Definition at line 242 of file Array.hpp.

◆ operator-() [2/2]

Iterator operator- ( difference_type  rhs) const
inline

Definition at line 246 of file Array.hpp.

◆ operator<()

bool operator< ( Iterator  rhs) const
inline

Definition at line 250 of file Array.hpp.

◆ operator>()

bool operator> ( Iterator  rhs) const
inline

Definition at line 254 of file Array.hpp.

◆ operator<=()

bool operator<= ( Iterator  rhs) const
inline

Definition at line 256 of file Array.hpp.

◆ operator>=()

bool operator>= ( Iterator  rhs) const
inline

Definition at line 258 of file Array.hpp.

Member Data Documentation

◆ ptr

ElementPtrType ptr
private

Definition at line 261 of file Array.hpp.


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