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 >::difference_type distance_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>::difference_type unchecked_array_iterator< _Iterator >::distance_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
574  : _Myptr()
575  { // default construct
576  }
_Iterator _Myptr
Definition: iterator:701
template<class _Iterator>
unchecked_array_iterator< _Iterator >::unchecked_array_iterator ( _Iterator  _Ptr)
inlineexplicit
579  : _Myptr(_Ptr)
580  { // construct with pointer
581  }
_Iterator _Myptr
Definition: iterator:701

Member Function Documentation

template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::_Rechecked ( _Unchecked_type  _Right)
inline
591  { // reset from unchecked iterator
592  _Myptr = _Right;
593  return (*this);
594  }
_Iterator _Myptr
Definition: iterator:701
const _Ty & _Right
Definition: algorithm:4087
template<class _Iterator>
_Unchecked_type unchecked_array_iterator< _Iterator >::_Unchecked ( ) const
inline
597  { // make an unchecked iterator
598  return (base());
599  }
_Iterator base() const
Definition: iterator:583
template<class _Iterator>
_Iterator unchecked_array_iterator< _Iterator >::base ( ) const
inline
584  { // return unwrapped iterator
585  return (_Myptr);
586  }
_Iterator _Myptr
Definition: iterator:701
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator!= ( const _Myt _Right) const
inline
676  { // test for iterator inequality
677  return (!(*this == _Right));
678  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Iterator>
reference unchecked_array_iterator< _Iterator >::operator* ( ) const
inline
602  { // return designated object
603  return (*_Myptr);
604  }
_Iterator _Myptr
Definition: iterator:701
template<class _Iterator>
_Myt unchecked_array_iterator< _Iterator >::operator+ ( difference_type  _Off) const
inline
644  { // return this + integer
645  _Myt _Tmp = *this;
646  return (_Tmp += _Off);
647  }
unchecked_array_iterator< _Iterator > _Myt
Definition: iterator:558
template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::operator++ ( )
inline
612  { // preincrement
613  ++_Myptr;
614  return (*this);
615  }
_Iterator _Myptr
Definition: iterator:701
template<class _Iterator>
_Myt unchecked_array_iterator< _Iterator >::operator++ ( int  )
inline
618  { // postincrement
619  _Myt _Tmp = *this;
620  ++*this;
621  return (_Tmp);
622  }
unchecked_array_iterator< _Iterator > _Myt
Definition: iterator:558
template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::operator+= ( difference_type  _Off)
inline
638  { // increment by integer
639  _Myptr += _Off;
640  return (*this);
641  }
_Iterator _Myptr
Definition: iterator:701
template<class _Iterator>
_Myt unchecked_array_iterator< _Iterator >::operator- ( difference_type  _Off) const
inline
655  { // return this - integer
656  _Myt _Tmp = *this;
657  return (_Tmp -= _Off);
658  }
unchecked_array_iterator< _Iterator > _Myt
Definition: iterator:558
template<class _Iterator>
difference_type unchecked_array_iterator< _Iterator >::operator- ( const _Myt _Right) const
inline
661  { // return difference of iterators
662  return (_Myptr - _Right._Myptr);
663  }
_Iterator _Myptr
Definition: iterator:701
const _Ty & _Right
Definition: algorithm:4087
template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::operator-- ( )
inline
625  { // predecrement
626  --_Myptr;
627  return (*this);
628  }
_Iterator _Myptr
Definition: iterator:701
template<class _Iterator>
_Myt unchecked_array_iterator< _Iterator >::operator-- ( int  )
inline
631  { // postdecrement
632  _Myt _Tmp = *this;
633  --*this;
634  return (_Tmp);
635  }
unchecked_array_iterator< _Iterator > _Myt
Definition: iterator:558
template<class _Iterator>
_Myt& unchecked_array_iterator< _Iterator >::operator-= ( difference_type  _Off)
inline
650  { // decrement by integer
651  return (*this += -_Off);
652  }
template<class _Iterator>
pointer unchecked_array_iterator< _Iterator >::operator-> ( ) const
inline
607  { // return pointer to class object
608  return (_STD pointer_traits<pointer>::pointer_to(**this));
609  }
Definition: xmemory0:198
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator< ( const _Myt _Right) const
inline
681  { // test if this < _Right
682  return (_Myptr < _Right._Myptr);
683  }
_Iterator _Myptr
Definition: iterator:701
const _Ty & _Right
Definition: algorithm:4087
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator<= ( const _Myt _Right) const
inline
691  { // test if this <= _Right
692  return (!(_Right < *this));
693  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator== ( const _Myt _Right) const
inline
671  { // test for iterator equality
672  return (_Myptr == _Right._Myptr);
673  }
_Iterator _Myptr
Definition: iterator:701
const _Ty & _Right
Definition: algorithm:4087
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator> ( const _Myt _Right) const
inline
686  { // test if this > _Right
687  return (_Right < *this);
688  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Iterator>
bool unchecked_array_iterator< _Iterator >::operator>= ( const _Myt _Right) const
inline
696  { // test if this >= _Right
697  return (!(*this < _Right));
698  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Iterator>
reference unchecked_array_iterator< _Iterator >::operator[] ( difference_type  _Off) const
inline
666  { // subscript
667  return (*(*this + _Off));
668  }

Member Data Documentation

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

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