STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
unchecked_array_iterator< _Iterator > Class Template Reference

Public Types

using iterator_category = typename iterator_traits< _Iterator >::iterator_category
 
using value_type = typename iterator_traits< _Iterator >::value_type
 
using difference_type = typename iterator_traits< _Iterator >::difference_type
 
using pointer = typename iterator_traits< _Iterator >::pointer
 
using reference = typename iterator_traits< _Iterator >::reference
 
typedef _Iterator _Unchecked_type
 

Public Member Functions

 unchecked_array_iterator ()
 
 unchecked_array_iterator (const _Iterator _Ptr)
 
_Iterator base () const
 
unchecked_array_iterator_Rechecked (const _Unchecked_type _Right)
 
_Unchecked_type _Unchecked () const
 
reference operator* () const
 
pointer operator-> () const
 
unchecked_array_iteratoroperator++ ()
 
unchecked_array_iterator operator++ (int)
 
unchecked_array_iteratoroperator-- ()
 
unchecked_array_iterator operator-- (int)
 
unchecked_array_iteratoroperator+= (const difference_type _Off)
 
unchecked_array_iterator operator+ (const difference_type _Off) const
 
unchecked_array_iteratoroperator-= (const difference_type _Off)
 
unchecked_array_iterator operator- (const difference_type _Off) const
 
difference_type operator- (const unchecked_array_iterator &_Right) const
 
reference operator[] (const difference_type _Off) const
 
bool operator== (const unchecked_array_iterator &_Right) const
 
bool operator!= (const unchecked_array_iterator &_Right) const
 
bool operator< (const unchecked_array_iterator &_Right) const
 
bool operator> (const unchecked_array_iterator &_Right) const
 
bool operator<= (const unchecked_array_iterator &_Right) const
 
bool operator>= (const unchecked_array_iterator &_Right) const
 

Private Attributes

_Iterator _Myptr
 

Member Typedef Documentation

template<class _Iterator>
typedef _Iterator unchecked_array_iterator< _Iterator >::_Unchecked_type
template<class _Iterator>
using unchecked_array_iterator< _Iterator >::difference_type = typename iterator_traits<_Iterator>::difference_type
template<class _Iterator>
using unchecked_array_iterator< _Iterator >::iterator_category = typename iterator_traits<_Iterator>::iterator_category
template<class _Iterator>
using unchecked_array_iterator< _Iterator >::pointer = typename iterator_traits<_Iterator>::pointer
template<class _Iterator>
using unchecked_array_iterator< _Iterator >::reference = typename iterator_traits<_Iterator>::reference
template<class _Iterator>
using unchecked_array_iterator< _Iterator >::value_type = typename iterator_traits<_Iterator>::value_type

Constructor & Destructor Documentation

template<class _Iterator>
unchecked_array_iterator< _Iterator >::unchecked_array_iterator ( )
inline
538  : _Myptr()
539  { // default construct
540  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
unchecked_array_iterator< _Iterator >::unchecked_array_iterator ( const _Iterator  _Ptr)
inlineexplicit
543  : _Myptr(_Ptr)
544  { // construct with pointer
545  }
_Iterator _Myptr
Definition: iterator:665

Member Function Documentation

template<class _Iterator>
unchecked_array_iterator& unchecked_array_iterator< _Iterator >::_Rechecked ( const _Unchecked_type  _Right)
inline
555  { // reset from unchecked iterator
556  _Myptr = _Right;
557  return (*this);
558  }
_Iterator _Myptr
Definition: iterator:665
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Iterator>
_Unchecked_type unchecked_array_iterator< _Iterator >::_Unchecked ( ) const
inline
561  { // make an unchecked iterator
562  return (base());
563  }
_Iterator base() const
Definition: iterator:547
template<class _Iterator>
_Iterator unchecked_array_iterator< _Iterator >::base ( ) const
inline
548  { // return unwrapped iterator
549  return (_Myptr);
550  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator!= ( const unchecked_array_iterator< _Iterator > &  _Right) const
inline
640  { // test for iterator inequality
641  return (!(*this == _Right));
642  }
template<class _Iterator>
reference unchecked_array_iterator< _Iterator >::operator* ( ) const
inline
566  { // return designated object
567  return (*_Myptr);
568  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
unchecked_array_iterator unchecked_array_iterator< _Iterator >::operator+ ( const difference_type  _Off) const
inline
608  { // return this + integer
609  unchecked_array_iterator _Tmp = *this;
610  return (_Tmp += _Off);
611  }
Definition: iterator:528
template<class _Iterator>
unchecked_array_iterator& unchecked_array_iterator< _Iterator >::operator++ ( )
inline
576  { // preincrement
577  ++_Myptr;
578  return (*this);
579  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
unchecked_array_iterator unchecked_array_iterator< _Iterator >::operator++ ( int  )
inline
582  { // postincrement
583  unchecked_array_iterator _Tmp = *this;
584  ++*this;
585  return (_Tmp);
586  }
Definition: iterator:528
template<class _Iterator>
unchecked_array_iterator& unchecked_array_iterator< _Iterator >::operator+= ( const difference_type  _Off)
inline
602  { // increment by integer
603  _Myptr += _Off;
604  return (*this);
605  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
unchecked_array_iterator unchecked_array_iterator< _Iterator >::operator- ( const difference_type  _Off) const
inline
619  { // return this - integer
620  unchecked_array_iterator _Tmp = *this;
621  return (_Tmp -= _Off);
622  }
Definition: iterator:528
template<class _Iterator>
difference_type unchecked_array_iterator< _Iterator >::operator- ( const unchecked_array_iterator< _Iterator > &  _Right) const
inline
625  { // return difference of iterators
626  return (_Myptr - _Right._Myptr);
627  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
unchecked_array_iterator& unchecked_array_iterator< _Iterator >::operator-- ( )
inline
589  { // predecrement
590  --_Myptr;
591  return (*this);
592  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
unchecked_array_iterator unchecked_array_iterator< _Iterator >::operator-- ( int  )
inline
595  { // postdecrement
596  unchecked_array_iterator _Tmp = *this;
597  --*this;
598  return (_Tmp);
599  }
Definition: iterator:528
template<class _Iterator>
unchecked_array_iterator& unchecked_array_iterator< _Iterator >::operator-= ( const difference_type  _Off)
inline
614  { // decrement by integer
615  return (*this += -_Off);
616  }
template<class _Iterator>
pointer unchecked_array_iterator< _Iterator >::operator-> ( ) const
inline
571  { // return pointer to class object
572  return (_Myptr);
573  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator< ( const unchecked_array_iterator< _Iterator > &  _Right) const
inline
645  { // test if this < _Right
646  return (_Myptr < _Right._Myptr);
647  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator<= ( const unchecked_array_iterator< _Iterator > &  _Right) const
inline
655  { // test if this <= _Right
656  return (!(_Right < *this));
657  }
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator== ( const unchecked_array_iterator< _Iterator > &  _Right) const
inline
635  { // test for iterator equality
636  return (_Myptr == _Right._Myptr);
637  }
_Iterator _Myptr
Definition: iterator:665
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator> ( const unchecked_array_iterator< _Iterator > &  _Right) const
inline
650  { // test if this > _Right
651  return (_Right < *this);
652  }
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator>= ( const unchecked_array_iterator< _Iterator > &  _Right) const
inline
660  { // test if this >= _Right
661  return (!(*this < _Right));
662  }
template<class _Iterator>
reference unchecked_array_iterator< _Iterator >::operator[] ( const difference_type  _Off) const
inline
630  { // subscript
631  return (*(*this + _Off));
632  }

Member Data Documentation

template<class _Iterator>
_Iterator unchecked_array_iterator< _Iterator >::_Myptr
private

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