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

typedef unchecked_array_iterator< _Iterator > _Myt
 
typedef iterator_traits< _Iterator >::iterator_category iterator_category
 
typedef iterator_traits< _Iterator >::value_type value_type
 
typedef iterator_traits< _Iterator >::difference_type difference_type
 
typedef iterator_traits< _Iterator >::pointer pointer
 
typedef iterator_traits< _Iterator >::reference reference
 
typedef _Iterator _Unchecked_type
 

Public Member Functions

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

Private Attributes

_Iterator _Myptr
 

Member Typedef Documentation

template<class _Iterator>
typedef unchecked_array_iterator<_Iterator> unchecked_array_iterator< _Iterator >::_Myt
template<class _Iterator>
typedef _Iterator unchecked_array_iterator< _Iterator >::_Unchecked_type
template<class _Iterator>
typedef iterator_traits<_Iterator>::difference_type unchecked_array_iterator< _Iterator >::difference_type
template<class _Iterator>
typedef iterator_traits<_Iterator>::iterator_category unchecked_array_iterator< _Iterator >::iterator_category
template<class _Iterator>
typedef iterator_traits<_Iterator>::pointer unchecked_array_iterator< _Iterator >::pointer
template<class _Iterator>
typedef iterator_traits<_Iterator>::reference unchecked_array_iterator< _Iterator >::reference
template<class _Iterator>
typedef iterator_traits<_Iterator>::value_type unchecked_array_iterator< _Iterator >::value_type

Constructor & Destructor Documentation

template<class _Iterator>
unchecked_array_iterator< _Iterator >::unchecked_array_iterator ( )
inline
570  : _Myptr()
571  { // default construct
572  }
_Iterator _Myptr
Definition: iterator:697
template<class _Iterator>
unchecked_array_iterator< _Iterator >::unchecked_array_iterator ( _Iterator  _Ptr)
inlineexplicit
575  : _Myptr(_Ptr)
576  { // construct with pointer
577  }
_Iterator _Myptr
Definition: iterator:697

Member Function Documentation

template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::_Rechecked ( _Unchecked_type  _Right)
inline
587  { // reset from unchecked iterator
588  _Myptr = _Right;
589  return (*this);
590  }
_Iterator _Myptr
Definition: iterator:697
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Iterator>
_Unchecked_type unchecked_array_iterator< _Iterator >::_Unchecked ( ) const
inline
593  { // make an unchecked iterator
594  return (base());
595  }
_Iterator base() const
Definition: iterator:579
template<class _Iterator>
_Iterator unchecked_array_iterator< _Iterator >::base ( ) const
inline
580  { // return unwrapped iterator
581  return (_Myptr);
582  }
_Iterator _Myptr
Definition: iterator:697
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator!= ( const _Myt _Right) const
inline
672  { // test for iterator inequality
673  return (!(*this == _Right));
674  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Iterator>
reference unchecked_array_iterator< _Iterator >::operator* ( ) const
inline
598  { // return designated object
599  return (*_Myptr);
600  }
_Iterator _Myptr
Definition: iterator:697
template<class _Iterator>
_Myt unchecked_array_iterator< _Iterator >::operator+ ( difference_type  _Off) const
inline
640  { // return this + integer
641  _Myt _Tmp = *this;
642  return (_Tmp += _Off);
643  }
unchecked_array_iterator< _Iterator > _Myt
Definition: iterator:556
template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::operator++ ( )
inline
608  { // preincrement
609  ++_Myptr;
610  return (*this);
611  }
_Iterator _Myptr
Definition: iterator:697
template<class _Iterator>
_Myt unchecked_array_iterator< _Iterator >::operator++ ( int  )
inline
614  { // postincrement
615  _Myt _Tmp = *this;
616  ++*this;
617  return (_Tmp);
618  }
unchecked_array_iterator< _Iterator > _Myt
Definition: iterator:556
template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::operator+= ( difference_type  _Off)
inline
634  { // increment by integer
635  _Myptr += _Off;
636  return (*this);
637  }
_Iterator _Myptr
Definition: iterator:697
template<class _Iterator>
_Myt unchecked_array_iterator< _Iterator >::operator- ( difference_type  _Off) const
inline
651  { // return this - integer
652  _Myt _Tmp = *this;
653  return (_Tmp -= _Off);
654  }
unchecked_array_iterator< _Iterator > _Myt
Definition: iterator:556
template<class _Iterator>
difference_type unchecked_array_iterator< _Iterator >::operator- ( const _Myt _Right) const
inline
657  { // return difference of iterators
658  return (_Myptr - _Right._Myptr);
659  }
_Iterator _Myptr
Definition: iterator:697
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::operator-- ( )
inline
621  { // predecrement
622  --_Myptr;
623  return (*this);
624  }
_Iterator _Myptr
Definition: iterator:697
template<class _Iterator>
_Myt unchecked_array_iterator< _Iterator >::operator-- ( int  )
inline
627  { // postdecrement
628  _Myt _Tmp = *this;
629  --*this;
630  return (_Tmp);
631  }
unchecked_array_iterator< _Iterator > _Myt
Definition: iterator:556
template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::operator-= ( difference_type  _Off)
inline
646  { // decrement by integer
647  return (*this += -_Off);
648  }
template<class _Iterator>
pointer unchecked_array_iterator< _Iterator >::operator-> ( ) const
inline
603  { // return pointer to class object
604  return (_STD pointer_traits<pointer>::pointer_to(**this));
605  }
Definition: xmemory0:244
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator< ( const _Myt _Right) const
inline
677  { // test if this < _Right
678  return (_Myptr < _Right._Myptr);
679  }
_Iterator _Myptr
Definition: iterator:697
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator<= ( const _Myt _Right) const
inline
687  { // test if this <= _Right
688  return (!(_Right < *this));
689  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator== ( const _Myt _Right) const
inline
667  { // test for iterator equality
668  return (_Myptr == _Right._Myptr);
669  }
_Iterator _Myptr
Definition: iterator:697
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator> ( const _Myt _Right) const
inline
682  { // test if this > _Right
683  return (_Right < *this);
684  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator>= ( const _Myt _Right) const
inline
692  { // test if this >= _Right
693  return (!(*this < _Right));
694  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Iterator>
reference unchecked_array_iterator< _Iterator >::operator[] ( difference_type  _Off) const
inline
662  { // subscript
663  return (*(*this + _Off));
664  }

Member Data Documentation

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

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