ReactOS  0.4.14-dev-77-gd9e7c48
reverse_iterator< _RandomAccessIterator, _Tp,, > Class Template Reference

#include <_iterator_old.h>

Public Types

typedef random_access_iterator_tag iterator_category
 
typedef _Tp value_type
 
typedef _Distance difference_type
 
typedef _Tp * pointer
 
typedef _Reference reference
 

Public Member Functions

 reverse_iterator ()
 
 reverse_iterator (const _Self &__x)
 
 reverse_iterator (_RandomAccessIterator __x)
 
_Selfoperator= (const _Self &__x)
 
_RandomAccessIterator base () const
 
_Reference operator * () const
 
_STLP_DEFINE_ARROW_OPERATOR _Selfoperator++ ()
 
_Self operator++ (int)
 
_Selfoperator-- ()
 
_Self operator-- (int)
 
_Self operator+ (_Distance __n) const
 
_Selfoperator+= (_Distance __n)
 
_Self operator- (_Distance __n) const
 
_Selfoperator-= (_Distance __n)
 
_Reference operator[] (_Distance __n) const
 

Protected Attributes

_RandomAccessIterator __current
 

Private Types

typedef reverse_iterator< _RandomAccessIterator, _Tp, Reference__, _Distance > _Self
 

Detailed Description

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &), _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t)>
class reverse_iterator< _RandomAccessIterator, _Tp,, >

Definition at line 160 of file _iterator_old.h.

Member Typedef Documentation

◆ _Self

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
typedef reverse_iterator<_RandomAccessIterator, _Tp, Reference__, _Distance> reverse_iterator< _RandomAccessIterator, _Tp,, >::_Self
private

Definition at line 161 of file _iterator_old.h.

◆ difference_type

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
typedef _Distance reverse_iterator< _RandomAccessIterator, _Tp,, >::difference_type

Definition at line 167 of file _iterator_old.h.

◆ iterator_category

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
typedef random_access_iterator_tag reverse_iterator< _RandomAccessIterator, _Tp,, >::iterator_category

Definition at line 165 of file _iterator_old.h.

◆ pointer

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
typedef _Tp* reverse_iterator< _RandomAccessIterator, _Tp,, >::pointer

Definition at line 171 of file _iterator_old.h.

◆ reference

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
typedef _Reference reverse_iterator< _RandomAccessIterator, _Tp,, >::reference

Definition at line 173 of file _iterator_old.h.

◆ value_type

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
typedef _Tp reverse_iterator< _RandomAccessIterator, _Tp,, >::value_type

Definition at line 166 of file _iterator_old.h.

Constructor & Destructor Documentation

◆ reverse_iterator() [1/3]

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
reverse_iterator< _RandomAccessIterator, _Tp,, >::reverse_iterator ( )
inline

Definition at line 175 of file _iterator_old.h.

175 {}

◆ reverse_iterator() [2/3]

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
reverse_iterator< _RandomAccessIterator, _Tp,, >::reverse_iterator ( const _Self __x)
inline

Definition at line 176 of file _iterator_old.h.

176 : __current(__x.base()) {}
_RandomAccessIterator __current

◆ reverse_iterator() [3/3]

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
reverse_iterator< _RandomAccessIterator, _Tp,, >::reverse_iterator ( _RandomAccessIterator  __x)
inlineexplicit

Definition at line 177 of file _iterator_old.h.

177 : __current(__x) {}
_RandomAccessIterator __current

Member Function Documentation

◆ base()

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_RandomAccessIterator reverse_iterator< _RandomAccessIterator, _Tp,, >::base ( ) const
inline

Definition at line 180 of file _iterator_old.h.

180 { return __current; }
_RandomAccessIterator __current

Referenced by reverse_iterator< _RandomAccessIterator, _Tp,, >::operator=().

◆ operator *()

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Reference reverse_iterator< _RandomAccessIterator, _Tp,, >::operator * ( ) const
inline

Definition at line 181 of file _iterator_old.h.

181 { return *(__current - (difference_type)1); }
_RandomAccessIterator __current
_Distance difference_type

◆ operator+()

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Self reverse_iterator< _RandomAccessIterator, _Tp,, >::operator+ ( _Distance  __n) const
inline

Definition at line 203 of file _iterator_old.h.

203  {
204  return _Self(__current - __n);
205  }
return __n
Definition: _algo.h:75
_RandomAccessIterator __current
reverse_iterator< _RandomAccessIterator, _Tp, Reference__, _Distance > _Self

◆ operator++() [1/2]

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_STLP_DEFINE_ARROW_OPERATOR _Self& reverse_iterator< _RandomAccessIterator, _Tp,, >::operator++ ( )
inline

Definition at line 185 of file _iterator_old.h.

185  {
186  --__current;
187  return *this;
188  }
_RandomAccessIterator __current

◆ operator++() [2/2]

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Self reverse_iterator< _RandomAccessIterator, _Tp,, >::operator++ ( int  )
inline

Definition at line 189 of file _iterator_old.h.

189  {
190  _Self __tmp = *this;
191  --__current;
192  return __tmp;
193  }
_RandomAccessIterator __current
reverse_iterator< _RandomAccessIterator, _Tp, Reference__, _Distance > _Self

◆ operator+=()

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Self& reverse_iterator< _RandomAccessIterator, _Tp,, >::operator+= ( _Distance  __n)
inline

Definition at line 206 of file _iterator_old.h.

206  {
207  __current -= __n;
208  return *this;
209  }
return __n
Definition: _algo.h:75
_RandomAccessIterator __current

◆ operator-()

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Self reverse_iterator< _RandomAccessIterator, _Tp,, >::operator- ( _Distance  __n) const
inline

Definition at line 210 of file _iterator_old.h.

210  {
211  return _Self(__current + __n);
212  }
return __n
Definition: _algo.h:75
_RandomAccessIterator __current
reverse_iterator< _RandomAccessIterator, _Tp, Reference__, _Distance > _Self

◆ operator--() [1/2]

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Self& reverse_iterator< _RandomAccessIterator, _Tp,, >::operator-- ( )
inline

Definition at line 194 of file _iterator_old.h.

194  {
195  ++__current;
196  return *this;
197  }
_RandomAccessIterator __current

◆ operator--() [2/2]

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Self reverse_iterator< _RandomAccessIterator, _Tp,, >::operator-- ( int  )
inline

Definition at line 198 of file _iterator_old.h.

198  {
199  _Self __tmp = *this;
200  ++__current;
201  return __tmp;
202  }
_RandomAccessIterator __current
reverse_iterator< _RandomAccessIterator, _Tp, Reference__, _Distance > _Self

◆ operator-=()

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Self& reverse_iterator< _RandomAccessIterator, _Tp,, >::operator-= ( _Distance  __n)
inline

Definition at line 213 of file _iterator_old.h.

213  {
214  __current += __n;
215  return *this;
216  }
return __n
Definition: _algo.h:75
_RandomAccessIterator __current

◆ operator=()

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Self& reverse_iterator< _RandomAccessIterator, _Tp,, >::operator= ( const _Self __x)
inline

Definition at line 178 of file _iterator_old.h.

178 {__current = __x.base(); return *this; }
_RandomAccessIterator __current

◆ operator[]()

template<class _RandomAccessIterator, class _Tp, _STLP_DFL_TMPL_PARAM(_Reference, _Tp &) , _STLP_DFL_TYPE_PARAM(_Distance, ptrdiff_t) >
_Reference reverse_iterator< _RandomAccessIterator, _Tp,, >::operator[] ( _Distance  __n) const
inline

Definition at line 217 of file _iterator_old.h.

217 { return *(*this + __n); }
return __n
Definition: _algo.h:75

Member Data Documentation

◆ __current


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