libtgd 4.3
A library that makes working with multidimensional arrays in C++ easy
TGD::Array< T >::ConstElementIterator Class Reference

Const iterator over all elements in the array. When dereferenced, this returns a pointer to the components of an element. This is a random access iterator. More...

#include <array.hpp>

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = T
 
using pointer = const T*
 
using reference = const T&
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 ConstElementIterator ()
 
 ConstElementIterator (const T *rhs, size_t componentCount=1)
 
 ConstElementIterator (const ConstElementIterator &rhs)
 
ConstElementIteratoroperator+= (difference_type rhs)
 
ConstElementIteratoroperator-= (difference_type rhs)
 
const T * operator* () const
 
const T * operator-> () const
 
const T * operator[] (difference_type rhs) const
 
ConstElementIteratoroperator++ ()
 
ConstElementIteratoroperator-- ()
 
ConstElementIterator operator++ (int)
 
ConstElementIterator operator-- (int)
 
difference_type operator- (const ConstElementIterator &rhs) const
 
ConstElementIterator operator+ (difference_type rhs) const
 
ConstElementIterator operator- (difference_type rhs) const
 
bool operator== (const ConstElementIterator &rhs) const
 
bool operator!= (const ConstElementIterator &rhs) const
 
bool operator> (const ConstElementIterator &rhs) const
 
bool operator< (const ConstElementIterator &rhs) const
 
bool operator>= (const ConstElementIterator &rhs) const
 
bool operator<= (const ConstElementIterator &rhs) const
 

Friends

ConstElementIterator operator+ (difference_type lhs, const ConstElementIterator &rhs)
 
ConstElementIterator operator- (difference_type lhs, const ConstElementIterator &rhs)
 

Detailed Description

template<typename T>
class TGD::Array< T >::ConstElementIterator

Const iterator over all elements in the array. When dereferenced, this returns a pointer to the components of an element. This is a random access iterator.

Member Typedef Documentation

◆ difference_type

template<typename T >
using TGD::Array< T >::ConstElementIterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<typename T >
using TGD::Array< T >::ConstElementIterator::iterator_category = std::random_access_iterator_tag

◆ pointer

template<typename T >
using TGD::Array< T >::ConstElementIterator::pointer = const T*

◆ reference

template<typename T >
using TGD::Array< T >::ConstElementIterator::reference = const T&

◆ value_type

template<typename T >
using TGD::Array< T >::ConstElementIterator::value_type = T

Constructor & Destructor Documentation

◆ ConstElementIterator() [1/3]

template<typename T >
TGD::Array< T >::ConstElementIterator::ConstElementIterator ( )
inline

◆ ConstElementIterator() [2/3]

template<typename T >
TGD::Array< T >::ConstElementIterator::ConstElementIterator ( const T * rhs,
size_t componentCount = 1 )
inline

◆ ConstElementIterator() [3/3]

template<typename T >
TGD::Array< T >::ConstElementIterator::ConstElementIterator ( const ConstElementIterator & rhs)
inline

Member Function Documentation

◆ operator!=()

template<typename T >
bool TGD::Array< T >::ConstElementIterator::operator!= ( const ConstElementIterator & rhs) const
inline

◆ operator*()

template<typename T >
const T * TGD::Array< T >::ConstElementIterator::operator* ( ) const
inline

◆ operator+()

template<typename T >
ConstElementIterator TGD::Array< T >::ConstElementIterator::operator+ ( difference_type rhs) const
inline

◆ operator++() [1/2]

template<typename T >
ConstElementIterator & TGD::Array< T >::ConstElementIterator::operator++ ( )
inline

◆ operator++() [2/2]

template<typename T >
ConstElementIterator TGD::Array< T >::ConstElementIterator::operator++ ( int )
inline

◆ operator+=()

template<typename T >
ConstElementIterator & TGD::Array< T >::ConstElementIterator::operator+= ( difference_type rhs)
inline

◆ operator-() [1/2]

template<typename T >
difference_type TGD::Array< T >::ConstElementIterator::operator- ( const ConstElementIterator & rhs) const
inline

◆ operator-() [2/2]

template<typename T >
ConstElementIterator TGD::Array< T >::ConstElementIterator::operator- ( difference_type rhs) const
inline

◆ operator--() [1/2]

template<typename T >
ConstElementIterator & TGD::Array< T >::ConstElementIterator::operator-- ( )
inline

◆ operator--() [2/2]

template<typename T >
ConstElementIterator TGD::Array< T >::ConstElementIterator::operator-- ( int )
inline

◆ operator-=()

template<typename T >
ConstElementIterator & TGD::Array< T >::ConstElementIterator::operator-= ( difference_type rhs)
inline

◆ operator->()

template<typename T >
const T * TGD::Array< T >::ConstElementIterator::operator-> ( ) const
inline

◆ operator<()

template<typename T >
bool TGD::Array< T >::ConstElementIterator::operator< ( const ConstElementIterator & rhs) const
inline

◆ operator<=()

template<typename T >
bool TGD::Array< T >::ConstElementIterator::operator<= ( const ConstElementIterator & rhs) const
inline

◆ operator==()

template<typename T >
bool TGD::Array< T >::ConstElementIterator::operator== ( const ConstElementIterator & rhs) const
inline

◆ operator>()

template<typename T >
bool TGD::Array< T >::ConstElementIterator::operator> ( const ConstElementIterator & rhs) const
inline

◆ operator>=()

template<typename T >
bool TGD::Array< T >::ConstElementIterator::operator>= ( const ConstElementIterator & rhs) const
inline

◆ operator[]()

template<typename T >
const T * TGD::Array< T >::ConstElementIterator::operator[] ( difference_type rhs) const
inline

Friends And Related Symbol Documentation

◆ operator+

template<typename T >
ConstElementIterator operator+ ( difference_type lhs,
const ConstElementIterator & rhs )
friend

◆ operator-

template<typename T >
ConstElementIterator operator- ( difference_type lhs,
const ConstElementIterator & rhs )
friend

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