Vector< Element >::Iterator< is_const > Class Template Reference

#include <WVector.h>

Inheritance diagram for Vector< Element >::Iterator< is_const >:
[legend]
Collaboration diagram for Vector< Element >::Iterator< is_const >:
[legend]

Public Types

using V = typename std::conditional< is_const, const Vector, Vector >::type
 
using E = typename std::conditional< is_const, const Element, Element >::type
 

Public Member Functions

 Iterator (const Iterator &)=default
 
 Iterator (V &vector, unsigned index)
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
Iterator operator+= (size_t distance)
 
bool operator== (const Iterator &rhs) const
 
bool operator!= (const Iterator &rhs) const
 
Element & operator* ()
 
Eoperator* () const
 

Member Typedef Documentation

◆ E

template<typename Element>
template<bool is_const>
using Vector< Element >::Iterator< is_const >::E = typename std::conditional<is_const, const Element, Element>::type

◆ V

template<typename Element>
template<bool is_const>
using Vector< Element >::Iterator< is_const >::V = typename std::conditional<is_const, const Vector, Vector>::type

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<typename Element>
template<bool is_const>
Vector< Element >::Iterator< is_const >::Iterator ( const Iterator< is_const > &  )
default

◆ Iterator() [2/2]

template<typename Element>
template<bool is_const>
Vector< Element >::Iterator< is_const >::Iterator ( V vector,
unsigned  index 
)
inline

Member Function Documentation

◆ operator!=()

template<typename Element>
template<bool is_const>
bool Vector< Element >::Iterator< is_const >::operator!= ( const Iterator< is_const > &  rhs) const
inline

◆ operator*() [1/2]

template<typename Element>
template<bool is_const>
Element& Vector< Element >::Iterator< is_const >::operator* ( )
inline

◆ operator*() [2/2]

template<typename Element>
template<bool is_const>
E& Vector< Element >::Iterator< is_const >::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename Element>
template<bool is_const>
Iterator& Vector< Element >::Iterator< is_const >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename Element>
template<bool is_const>
Iterator Vector< Element >::Iterator< is_const >::operator++ ( int  )
inline

◆ operator+=()

template<typename Element>
template<bool is_const>
Iterator Vector< Element >::Iterator< is_const >::operator+= ( size_t  distance)
inline

◆ operator==()

template<typename Element>
template<bool is_const>
bool Vector< Element >::Iterator< is_const >::operator== ( const Iterator< is_const > &  rhs) const
inline

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