STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Types | List of all members
reverse_iterator< _RanIt > Class Template Reference
Inheritance diagram for reverse_iterator< _RanIt >:
_Revranit< _RanIt, iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference > > iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference >

Public Types

typedef iterator_traits< _RanIt >::difference_type difference_type
 
typedef iterator_traits< _RanIt >::pointer pointer
 
typedef iterator_traits< _RanIt >::reference reference
 
typedef _RanIt iterator_type
 
- Public Types inherited from _Revranit< _RanIt, iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference > >
typedef _Revranit< _RanIt, iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference > > _Myt
 
typedef iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference >::difference_type difference_type
 
typedef iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference >::pointer pointer
 
typedef iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference >::reference reference
 
typedef _RanIt iterator_type
 
- Public Types inherited from iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference >
typedef iterator_traits< _RanIt >::iterator_category iterator_category
 
typedef iterator_traits< _RanIt >::value_type value_type
 
typedef iterator_traits< _RanIt >::difference_type difference_type
 
typedef iterator_traits< _RanIt >::difference_type distance_type
 
typedef iterator_traits< _RanIt >::pointer pointer
 
typedef iterator_traits< _RanIt >::reference reference
 

Public Member Functions

 reverse_iterator ()
 
 reverse_iterator (_RanIt _Right)
 
template<class _Other >
 reverse_iterator (const reverse_iterator< _Other > &_Right)
 
 reverse_iterator (_Mybase _Right)
 
template<class _Other >
_Mytoperator= (const reverse_iterator< _Other > &_Right)
 
_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
 
- Public Member Functions inherited from _Revranit< _RanIt, iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference > >
 _Revranit ()
 
 _Revranit (_RanIt _Right)
 
 _Revranit (const _Revranit< _RanIt2, _Base2 > &_Right)
 
_RanIt base () const
 
reference operator* () const
 
pointer operator-> () const
 
_Mytoperator++ ()
 
_Myt operator++ (int)
 
_Mytoperator-- ()
 
_Myt operator-- (int)
 
bool _Equal (const _Revranit< _RanIt2, _Base2 > &_Right) const
 
_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 _Less (const _Revranit< _RanIt2, _Base2 > &_Right) const
 

Private Types

typedef reverse_iterator< _RanIt > _Myt
 
typedef _Revranit< _RanIt, iterator< typename iterator_traits< _RanIt >::iterator_category, typename iterator_traits< _RanIt >::value_type, typename iterator_traits< _RanIt >::difference_type, typename iterator_traits< _RanIt >::pointer, typename iterator_traits< _RanIt >::reference > > _Mybase
 

Additional Inherited Members

- Protected Attributes inherited from _Revranit< _RanIt, iterator< iterator_traits< _RanIt >::iterator_category, iterator_traits< _RanIt >::value_type, iterator_traits< _RanIt >::difference_type, iterator_traits< _RanIt >::pointer, iterator_traits< _RanIt >::reference > >
_RanIt current
 

Member Typedef Documentation

template<class _RanIt>
typedef _Revranit<_RanIt, iterator< typename iterator_traits<_RanIt>::iterator_category, typename iterator_traits<_RanIt>::value_type, typename iterator_traits<_RanIt>::difference_type, typename iterator_traits<_RanIt>::pointer, typename iterator_traits<_RanIt>::reference> > reverse_iterator< _RanIt >::_Mybase
private
template<class _RanIt>
typedef reverse_iterator<_RanIt> reverse_iterator< _RanIt >::_Myt
private
template<class _RanIt>
typedef iterator_traits<_RanIt>::difference_type reverse_iterator< _RanIt >::difference_type
template<class _RanIt>
typedef _RanIt reverse_iterator< _RanIt >::iterator_type
template<class _RanIt>
typedef iterator_traits<_RanIt>::pointer reverse_iterator< _RanIt >::pointer
template<class _RanIt>
typedef iterator_traits<_RanIt>::reference reverse_iterator< _RanIt >::reference

Constructor & Destructor Documentation

template<class _RanIt>
reverse_iterator< _RanIt >::reverse_iterator ( )
inline
1036  { // construct with default wrapped iterator
1037  }
template<class _RanIt>
reverse_iterator< _RanIt >::reverse_iterator ( _RanIt  _Right)
inlineexplicit
1040  : _Mybase(_Right)
1041  { // construct wrapped iterator from _Right
1042  }
_Revranit< _RanIt, iterator< typename iterator_traits< _RanIt >::iterator_category, typename iterator_traits< _RanIt >::value_type, typename iterator_traits< _RanIt >::difference_type, typename iterator_traits< _RanIt >::pointer, typename iterator_traits< _RanIt >::reference > > _Mybase
Definition: xutility:1027
const _Ty & _Right
Definition: algorithm:4087
template<class _RanIt>
template<class _Other >
reverse_iterator< _RanIt >::reverse_iterator ( const reverse_iterator< _Other > &  _Right)
inline
1046  : _Mybase(_Right.base())
1047  { // initialize with compatible base
1048  }
_Revranit< _RanIt, iterator< typename iterator_traits< _RanIt >::iterator_category, typename iterator_traits< _RanIt >::value_type, typename iterator_traits< _RanIt >::difference_type, typename iterator_traits< _RanIt >::pointer, typename iterator_traits< _RanIt >::reference > > _Mybase
Definition: xutility:1027
template<class _RanIt>
reverse_iterator< _RanIt >::reverse_iterator ( _Mybase  _Right)
inline
1051  : _Mybase(_Right)
1052  { // construct wrapped iterator from base object
1053  }
_Revranit< _RanIt, iterator< typename iterator_traits< _RanIt >::iterator_category, typename iterator_traits< _RanIt >::value_type, typename iterator_traits< _RanIt >::difference_type, typename iterator_traits< _RanIt >::pointer, typename iterator_traits< _RanIt >::reference > > _Mybase
Definition: xutility:1027
const _Ty & _Right
Definition: algorithm:4087

Member Function Documentation

template<class _RanIt>
_Myt reverse_iterator< _RanIt >::operator+ ( difference_type  _Off) const
inline
1095  { // return this + integer
1096  _Myt _Tmp = *this;
1097  return (_Tmp += _Off);
1098  }
reverse_iterator< _RanIt > _Myt
Definition: xutility:1021
template<class _RanIt>
_Myt& reverse_iterator< _RanIt >::operator++ ( )
inline
1063  { // preincrement
1064  ++*((_Mybase *)this);
1065  return (*this);
1066  }
_Revranit< _RanIt, iterator< typename iterator_traits< _RanIt >::iterator_category, typename iterator_traits< _RanIt >::value_type, typename iterator_traits< _RanIt >::difference_type, typename iterator_traits< _RanIt >::pointer, typename iterator_traits< _RanIt >::reference > > _Mybase
Definition: xutility:1027
template<class _RanIt>
_Myt reverse_iterator< _RanIt >::operator++ ( int  )
inline
1069  { // postincrement
1070  _Myt _Tmp = *this;
1071  ++*this;
1072  return (_Tmp);
1073  }
reverse_iterator< _RanIt > _Myt
Definition: xutility:1021
template<class _RanIt>
_Myt& reverse_iterator< _RanIt >::operator+= ( difference_type  _Off)
inline
1089  { // increment by integer
1090  *((_Mybase *)this) += _Off;
1091  return (*this);
1092  }
_Revranit< _RanIt, iterator< typename iterator_traits< _RanIt >::iterator_category, typename iterator_traits< _RanIt >::value_type, typename iterator_traits< _RanIt >::difference_type, typename iterator_traits< _RanIt >::pointer, typename iterator_traits< _RanIt >::reference > > _Mybase
Definition: xutility:1027
template<class _RanIt>
_Myt reverse_iterator< _RanIt >::operator- ( difference_type  _Off) const
inline
1107  { // return this - integer
1108  _Myt _Tmp = *this;
1109  return (_Tmp -= _Off);
1110  }
reverse_iterator< _RanIt > _Myt
Definition: xutility:1021
template<class _RanIt>
_Myt& reverse_iterator< _RanIt >::operator-- ( )
inline
1076  { // predecrement
1077  --*((_Mybase *)this);
1078  return (*this);
1079  }
_Revranit< _RanIt, iterator< typename iterator_traits< _RanIt >::iterator_category, typename iterator_traits< _RanIt >::value_type, typename iterator_traits< _RanIt >::difference_type, typename iterator_traits< _RanIt >::pointer, typename iterator_traits< _RanIt >::reference > > _Mybase
Definition: xutility:1027
template<class _RanIt>
_Myt reverse_iterator< _RanIt >::operator-- ( int  )
inline
1082  { // postdecrement
1083  _Myt _Tmp = *this;
1084  --*this;
1085  return (_Tmp);
1086  }
reverse_iterator< _RanIt > _Myt
Definition: xutility:1021
template<class _RanIt>
_Myt& reverse_iterator< _RanIt >::operator-= ( difference_type  _Off)
inline
1101  { // decrement by integer
1102  *((_Mybase *)this) -= _Off;
1103  return (*this);
1104  }
_Revranit< _RanIt, iterator< typename iterator_traits< _RanIt >::iterator_category, typename iterator_traits< _RanIt >::value_type, typename iterator_traits< _RanIt >::difference_type, typename iterator_traits< _RanIt >::pointer, typename iterator_traits< _RanIt >::reference > > _Mybase
Definition: xutility:1027
template<class _RanIt>
template<class _Other >
_Myt& reverse_iterator< _RanIt >::operator= ( const reverse_iterator< _Other > &  _Right)
inline

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