neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator Class Reference

#include <vecarray.hpp>

Public Types

typedef std::random_access_iterator_tag iterator_category
 
typedef vecarray::value_type value_type
 
typedef vecarray::difference_type difference_type
 
typedef vecarray::pointer pointer
 
typedef vecarray::reference reference
 

Public Member Functions

 iterator ()
 
 iterator (const iterator &aOther)
 
 iterator (T *aPtr)
 
 iterator (typename vector_type::iterator aIter)
 
iteratoroperator++ ()
 
iteratoroperator-- ()
 
iterator operator++ (int)
 
iterator operator-- (int)
 
iteratoroperator+= (difference_type aDifference)
 
iteratoroperator-= (difference_type aDifference)
 
iterator operator+ (difference_type aDifference) const
 
iterator operator- (difference_type aDifference) const
 
reference operator[] (difference_type aDifference) const
 
difference_type operator- (const iterator &aOther) const
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const iterator &aOther) const
 
bool operator!= (const iterator &aOther) const
 
bool operator< (const iterator &aOther) const
 
Tarray_ptr () const
 
vector_type::iterator vector_iter () const
 

Friends

class const_iterator
 

Detailed Description

template<typename T, std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
class neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator

Definition at line 117 of file vecarray.hpp.

Member Typedef Documentation

◆ difference_type

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
typedef vecarray::difference_type neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::difference_type

Definition at line 124 of file vecarray.hpp.

◆ iterator_category

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
typedef std::random_access_iterator_tag neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::iterator_category

Definition at line 122 of file vecarray.hpp.

◆ pointer

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
typedef vecarray::pointer neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::pointer

Definition at line 125 of file vecarray.hpp.

◆ reference

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
typedef vecarray::reference neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::reference

Definition at line 126 of file vecarray.hpp.

◆ value_type

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
typedef vecarray::value_type neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::value_type

Definition at line 123 of file vecarray.hpp.

Constructor & Destructor Documentation

◆ iterator() [1/4]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::iterator ( )
inline

Definition at line 129 of file vecarray.hpp.

◆ iterator() [2/4]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::iterator ( const iterator aOther)
inline

Definition at line 132 of file vecarray.hpp.

◆ iterator() [3/4]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::iterator ( T aPtr)
inline

Definition at line 135 of file vecarray.hpp.

◆ iterator() [4/4]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::iterator ( typename vector_type::iterator  aIter)
inline

Definition at line 138 of file vecarray.hpp.

Member Function Documentation

◆ array_ptr()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
T * neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::array_ptr ( ) const
inline

Definition at line 221 of file vecarray.hpp.

◆ operator!=()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
bool neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator!= ( const iterator aOther) const
inline

Definition at line 206 of file vecarray.hpp.

◆ operator*()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
reference neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator* ( ) const
inline

Definition at line 191 of file vecarray.hpp.

◆ operator+()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
iterator neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator+ ( difference_type  aDifference) const
inline

Definition at line 181 of file vecarray.hpp.

◆ operator++() [1/2]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
iterator & neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator++ ( )
inline

Definition at line 143 of file vecarray.hpp.

◆ operator++() [2/2]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
iterator neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator++ ( int  )
inline

Definition at line 159 of file vecarray.hpp.

◆ operator+=()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
iterator & neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator+= ( difference_type  aDifference)
inline

Definition at line 161 of file vecarray.hpp.

◆ operator-() [1/2]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
difference_type neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator- ( const iterator aOther) const
inline

Definition at line 184 of file vecarray.hpp.

◆ operator-() [2/2]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
iterator neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator- ( difference_type  aDifference) const
inline

Definition at line 182 of file vecarray.hpp.

◆ operator--() [1/2]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
iterator & neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator-- ( )
inline

Definition at line 151 of file vecarray.hpp.

◆ operator--() [2/2]

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
iterator neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator-- ( int  )
inline

Definition at line 160 of file vecarray.hpp.

◆ operator-=()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
iterator & neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator-= ( difference_type  aDifference)
inline

Definition at line 171 of file vecarray.hpp.

◆ operator->()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
pointer neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator-> ( ) const
inline

Definition at line 198 of file vecarray.hpp.

◆ operator<()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
bool neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator< ( const iterator aOther) const
inline

Definition at line 213 of file vecarray.hpp.

◆ operator==()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
bool neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator== ( const iterator aOther) const
inline

Definition at line 199 of file vecarray.hpp.

◆ operator[]()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
reference neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::operator[] ( difference_type  aDifference) const
inline

Definition at line 183 of file vecarray.hpp.

◆ vector_iter()

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
vector_type::iterator neolib::vecarray< T, ArraySize, MaxVectorSize, CheckPolicy, Alloc >::iterator::vector_iter ( ) const
inline

Definition at line 228 of file vecarray.hpp.

Friends And Related Symbol Documentation

◆ const_iterator

template<typename T , std::size_t ArraySize, std::size_t MaxVectorSize = ArraySize, typename CheckPolicy = check<vecarray_overflow>, typename Alloc = std::allocator<T>>
friend class const_iterator
friend

Definition at line 119 of file vecarray.hpp.


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