STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_Deque_iterator< _Mydeque > Class Template Reference
Inheritance diagram for _Deque_iterator< _Mydeque >:
_Deque_const_iterator< _Mydeque > _Iterator_base12

Public Types

typedef _Deque_iterator< _Mydeque > _Myiter
 
typedef _Deque_const_iterator< _Mydeque > _Mybase
 
typedef _Deque_unchecked_iterator< _Mydeque > _Deque_unchecked_type
 
typedef random_access_iterator_tag iterator_category
 
typedef _Mydeque::value_type value_type
 
typedef _Mydeque::size_type size_type
 
typedef _Mydeque::difference_type difference_type
 
typedef _Mydeque::pointer pointer
 
typedef _Mydeque::reference reference
 
typedef _Deque_unchecked_iterator< _Mydeque > _Unchecked_type
 
- Public Types inherited from _Deque_const_iterator< _Mydeque >
enum  { _EEN_DS = _DEQUESIZ }
 
typedef _Deque_const_iterator< _Mydeque > _Myiter
 
typedef random_access_iterator_tag iterator_category
 
typedef _Mydeque::value_type value_type
 
typedef _Mydeque::size_type size_type
 
typedef _Mydeque::difference_type difference_type
 
typedef _Mydeque::const_pointer pointer
 
typedef _Mydeque::const_reference reference
 
typedef _Mydeque _Mydeque_t
 
typedef _Deque_unchecked_const_iterator< _Mydeque > _Unchecked_type
 

Public Member Functions

 _Deque_iterator ()
 
 _Deque_iterator (size_type _Off, const _Container_base12 *_Pdeque)
 
_Myiter_Rechecked (_Unchecked_type _Right)
 
_Unchecked_type _Unchecked () const
 
reference operator* () const
 
pointer operator-> () const
 
_Myiteroperator++ ()
 
_Myiter operator++ (int)
 
_Myiteroperator-- ()
 
_Myiter operator-- (int)
 
_Myiteroperator+= (difference_type _Off)
 
_Myiter operator+ (difference_type _Off) const
 
_Myiteroperator-= (difference_type _Off)
 
_Myiter operator- (difference_type _Off) const
 
difference_type operator- (const _Mybase &_Right) const
 
reference operator[] (difference_type _Off) const
 
- Public Member Functions inherited from _Deque_const_iterator< _Mydeque >
 _Deque_const_iterator ()
 
 _Deque_const_iterator (size_type _Off, const _Container_base12 *_Pdeque)
 
_Myiter_Rechecked (_Unchecked_type _Right)
 
_Unchecked_type _Unchecked () const
 
reference operator* () const
 
pointer operator-> () const
 
_Myiteroperator++ ()
 
_Myiter operator++ (int)
 
_Myiteroperator-- ()
 
_Myiter operator-- (int)
 
_Myiteroperator+= (difference_type _Off)
 
_Myiter operator+ (difference_type _Off) const
 
_Myiteroperator-= (difference_type _Off)
 
_Myiter operator- (difference_type _Off) const
 
difference_type operator- (const _Myiter &_Right) const
 
reference operator[] (difference_type _Off) const
 
bool operator== (const _Myiter &_Right) const
 
bool operator!= (const _Myiter &_Right) const
 
bool operator< (const _Myiter &_Right) const
 
bool operator> (const _Myiter &_Right) const
 
bool operator<= (const _Myiter &_Right) const
 
bool operator>= (const _Myiter &_Right) const
 
void _Compat (const _Myiter &) const
 
void _Setcont (const _Mydeque *_Pdeque)
 
- Public Member Functions inherited from _Iterator_base12
 _Iterator_base12 ()
 
 _Iterator_base12 (const _Iterator_base12 &_Right)
 
_Iterator_base12operator= (const _Iterator_base12 &_Right)
 
 ~_Iterator_base12 () _NOEXCEPT
 
void _Adopt (const _Container_base12 *_Parent)
 
void _Clrcont ()
 
const _Container_base12_Getcont () const
 
_Iterator_base12 ** _Getpnext ()
 
void _Orphan_me ()
 

Additional Inherited Members

- Public Attributes inherited from _Deque_const_iterator< _Mydeque >
size_type _Myoff
 
- Public Attributes inherited from _Iterator_base12
_Container_proxy_Myproxy
 
_Iterator_base12_Mynextiter
 

Member Typedef Documentation

template<class _Mydeque>
typedef _Deque_unchecked_iterator<_Mydeque> _Deque_iterator< _Mydeque >::_Deque_unchecked_type
template<class _Mydeque>
typedef _Deque_const_iterator<_Mydeque> _Deque_iterator< _Mydeque >::_Mybase
template<class _Mydeque>
typedef _Deque_iterator<_Mydeque> _Deque_iterator< _Mydeque >::_Myiter
template<class _Mydeque>
typedef _Deque_unchecked_iterator<_Mydeque> _Deque_iterator< _Mydeque >::_Unchecked_type
template<class _Mydeque>
typedef _Mydeque::difference_type _Deque_iterator< _Mydeque >::difference_type
template<class _Mydeque>
typedef random_access_iterator_tag _Deque_iterator< _Mydeque >::iterator_category
template<class _Mydeque>
typedef _Mydeque::pointer _Deque_iterator< _Mydeque >::pointer
template<class _Mydeque>
typedef _Mydeque::reference _Deque_iterator< _Mydeque >::reference
template<class _Mydeque>
typedef _Mydeque::size_type _Deque_iterator< _Mydeque >::size_type
template<class _Mydeque>
typedef _Mydeque::value_type _Deque_iterator< _Mydeque >::value_type

Constructor & Destructor Documentation

template<class _Mydeque>
_Deque_iterator< _Mydeque >::_Deque_iterator ( )
inline
580  { // construct with null deque pointer
581  }
template<class _Mydeque>
_Deque_iterator< _Mydeque >::_Deque_iterator ( size_type  _Off,
const _Container_base12 _Pdeque 
)
inline
584  : _Mybase(_Off, _Pdeque)
585  { // construct with offset _Off in *_Pdeque
586  }
_Deque_const_iterator< _Mydeque > _Mybase
Definition: deque:569

Member Function Documentation

template<class _Mydeque>
_Myiter& _Deque_iterator< _Mydeque >::_Rechecked ( _Unchecked_type  _Right)
inline
591  { // reset from unchecked iterator
592  this->_Myoff = _Right._Myoff;
593  return (*this);
594  }
const _Ty & _Right
Definition: algorithm:4087
size_type _Myoff
Definition: deque:535
template<class _Mydeque>
_Unchecked_type _Deque_iterator< _Mydeque >::_Unchecked ( ) const
inline
597  { // make an unchecked iterator
598  return (_Unchecked_type(this->_Myoff, this->_Getcont()));
599  }
_Deque_unchecked_iterator< _Mydeque > _Unchecked_type
Definition: deque:588
const _Container_base12 * _Getcont() const
Definition: xutility:181
size_type _Myoff
Definition: deque:535
template<class _Mydeque>
reference _Deque_iterator< _Mydeque >::operator* ( ) const
inline
602  { // return designated object
603  return ((reference)**(_Mybase *)this);
604  }
_Deque_const_iterator< _Mydeque > _Mybase
Definition: deque:569
_Mydeque::reference reference
Definition: deque:577
template<class _Mydeque>
_Myiter _Deque_iterator< _Mydeque >::operator+ ( difference_type  _Off) const
inline
644  { // return this + integer
645  _Myiter _Tmp = *this;
646  return (_Tmp += _Off);
647  }
_Deque_iterator< _Mydeque > _Myiter
Definition: deque:568
template<class _Mydeque>
_Myiter& _Deque_iterator< _Mydeque >::operator++ ( )
inline
612  { // preincrement
613  ++*(_Mybase *)this;
614  return (*this);
615  }
_Deque_const_iterator< _Mydeque > _Mybase
Definition: deque:569
template<class _Mydeque>
_Myiter _Deque_iterator< _Mydeque >::operator++ ( int  )
inline
618  { // postincrement
619  _Myiter _Tmp = *this;
620  ++*this;
621  return (_Tmp);
622  }
_Deque_iterator< _Mydeque > _Myiter
Definition: deque:568
template<class _Mydeque>
_Myiter& _Deque_iterator< _Mydeque >::operator+= ( difference_type  _Off)
inline
638  { // increment by integer
639  this->_Myoff += _Off;
640  return (*this);
641  }
size_type _Myoff
Definition: deque:535
template<class _Mydeque>
_Myiter _Deque_iterator< _Mydeque >::operator- ( difference_type  _Off) const
inline
655  { // return this - integer
656  _Myiter _Tmp = *this;
657  return (_Tmp -= _Off);
658  }
_Deque_iterator< _Mydeque > _Myiter
Definition: deque:568
template<class _Mydeque>
difference_type _Deque_iterator< _Mydeque >::operator- ( const _Mybase _Right) const
inline
661  { // return difference of iterators
662  return (*(_Mybase *)this - _Right);
663  }
_Deque_const_iterator< _Mydeque > _Mybase
Definition: deque:569
const _Ty & _Right
Definition: algorithm:4087
template<class _Mydeque>
_Myiter& _Deque_iterator< _Mydeque >::operator-- ( )
inline
625  { // predecrement
626  --*(_Mybase *)this;
627  return (*this);
628  }
_Deque_const_iterator< _Mydeque > _Mybase
Definition: deque:569
template<class _Mydeque>
_Myiter _Deque_iterator< _Mydeque >::operator-- ( int  )
inline
631  { // postdecrement
632  _Myiter _Tmp = *this;
633  --*this;
634  return (_Tmp);
635  }
_Deque_iterator< _Mydeque > _Myiter
Definition: deque:568
template<class _Mydeque>
_Myiter& _Deque_iterator< _Mydeque >::operator-= ( difference_type  _Off)
inline
650  { // decrement by integer
651  return (*this += -_Off);
652  }
template<class _Mydeque>
pointer _Deque_iterator< _Mydeque >::operator-> ( ) const
inline
607  { // return pointer to class object
608  return (_STD pointer_traits<pointer>::pointer_to(**this));
609  }
Definition: xmemory0:198
template<class _Mydeque>
reference _Deque_iterator< _Mydeque >::operator[] ( difference_type  _Off) const
inline
666  { // subscript
667  return (*(*this + _Off));
668  }

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