Zserio C++17 runtime library  0.5.0
Built for Zserio 2.17.0
zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator Class Reference

#include <ArrayView.h>

Classes

struct  ArrowHelper
 

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = decltype(std::declval< ArrayView >().at(std::declval< size_t >()))
 
using difference_type = std::ptrdiff_t
 
using pointer = void
 
using reference = value_type
 

Public Member Functions

 ConstIterator (const ArrayView *array, size_t index)
 
value_type operator* () const
 
ArrowHelper operator-> () const
 
value_type operator[] (difference_type offset) const
 
ConstIteratoroperator++ ()
 
ConstIterator operator++ (int)
 
ConstIteratoroperator-- ()
 
ConstIterator operator-- (int)
 
ConstIteratoroperator+= (difference_type offset)
 
ConstIterator operator+ (difference_type offset) const
 
ConstIteratoroperator-= (difference_type offset)
 
ConstIterator operator- (difference_type offset) const
 
difference_type operator- (const ConstIterator &other) const
 
bool operator== (const ConstIterator &other) const
 
bool operator!= (const ConstIterator &other) const
 
bool operator< (const ConstIterator &other) const
 
bool operator> (const ConstIterator &other) const
 
bool operator<= (const ConstIterator &other) const
 
bool operator>= (const ConstIterator &other) const
 

Friends

ConstIterator operator+ (difference_type offset, const ConstIterator &other)
 

Detailed Description

template<typename T, typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
class zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator

Implementation of ArrayView constant iterator.

Definition at line 349 of file ArrayView.h.

Member Typedef Documentation

◆ difference_type

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
using zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::difference_type = std::ptrdiff_t

Definition at line 354 of file ArrayView.h.

◆ iterator_category

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
using zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::iterator_category = std::random_access_iterator_tag

Definition at line 352 of file ArrayView.h.

◆ pointer

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
using zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::pointer = void

Definition at line 355 of file ArrayView.h.

◆ reference

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
using zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::reference = value_type

Definition at line 356 of file ArrayView.h.

◆ value_type

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
using zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::value_type = decltype(std::declval<ArrayView>().at(std::declval<size_t>()))

Definition at line 353 of file ArrayView.h.

Constructor & Destructor Documentation

◆ ConstIterator()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::ConstIterator ( const ArrayView array,
size_t  index 
)
inline

Definition at line 369 of file ArrayView.h.

Member Function Documentation

◆ operator!=()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
bool zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator!= ( const ConstIterator other) const
inline

Definition at line 452 of file ArrayView.h.

◆ operator*()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
value_type zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator* ( ) const
inline

Definition at line 374 of file ArrayView.h.

◆ operator+()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator+ ( difference_type  offset) const
inline

Definition at line 421 of file ArrayView.h.

◆ operator++() [1/2]

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator& zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator++ ( )
inline

Definition at line 389 of file ArrayView.h.

◆ operator++() [2/2]

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator++ ( int  )
inline

Definition at line 395 of file ArrayView.h.

◆ operator+=()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator& zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator+= ( difference_type  offset)
inline

Definition at line 415 of file ArrayView.h.

◆ operator-() [1/2]

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
difference_type zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator- ( const ConstIterator other) const
inline

Definition at line 442 of file ArrayView.h.

◆ operator-() [2/2]

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator- ( difference_type  offset) const
inline

Definition at line 437 of file ArrayView.h.

◆ operator--() [1/2]

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator& zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator-- ( )
inline

Definition at line 402 of file ArrayView.h.

◆ operator--() [2/2]

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator-- ( int  )
inline

Definition at line 408 of file ArrayView.h.

◆ operator-=()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator& zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator-= ( difference_type  offset)
inline

Definition at line 431 of file ArrayView.h.

◆ operator->()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ArrowHelper zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator-> ( ) const
inline

Definition at line 379 of file ArrayView.h.

◆ operator<()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
bool zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator< ( const ConstIterator other) const
inline

Definition at line 457 of file ArrayView.h.

◆ operator<=()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
bool zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator<= ( const ConstIterator other) const
inline

Definition at line 472 of file ArrayView.h.

◆ operator==()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
bool zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator== ( const ConstIterator other) const
inline

Definition at line 447 of file ArrayView.h.

◆ operator>()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
bool zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator> ( const ConstIterator other) const
inline

Definition at line 467 of file ArrayView.h.

◆ operator>=()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
bool zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator>= ( const ConstIterator other) const
inline

Definition at line 477 of file ArrayView.h.

◆ operator[]()

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
value_type zserio::ArrayView< T, ARRAY_TRAITS >::ConstIterator::operator[] ( difference_type  offset) const
inline

Definition at line 384 of file ArrayView.h.

Friends And Related Function Documentation

◆ operator+

template<typename T , typename ARRAY_TRAITS = ArrayTraits<std::remove_cv_t<T>>>
ConstIterator operator+ ( difference_type  offset,
const ConstIterator other 
)
friend

Definition at line 426 of file ArrayView.h.


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