STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_Vector_iterator< _Myvec > Class Template Reference
Inheritance diagram for _Vector_iterator< _Myvec >:
_Vector_const_iterator< _Myvec > _Iterator012< random_access_iterator_tag, _Myvec::value_type, _Myvec::difference_type, _Myvec::const_pointer, _Myvec::const_reference, _Iterator_base > _Iterator_base0

Public Types

typedef _Vector_iterator< _Myvec > _Myiter
 
typedef _Vector_const_iterator< _Myvec > _Mybase
 
typedef random_access_iterator_tag iterator_category
 
typedef _Myvec::value_type value_type
 
typedef _Myvec::difference_type difference_type
 
typedef _Myvec::pointer pointer
 
typedef _Myvec::reference reference
 
typedef pointer _Unchecked_type
 
- Public Types inherited from _Vector_const_iterator< _Myvec >
typedef _Vector_const_iterator< _Myvec > _Myiter
 
typedef random_access_iterator_tag iterator_category
 
typedef _Myvec::value_type value_type
 
typedef _Myvec::difference_type difference_type
 
typedef _Myvec::const_pointer pointer
 
typedef _Myvec::const_reference reference
 
typedef _Myvec::pointer _Tptr
 
typedef pointer _Unchecked_type
 
- Public Types inherited from _Iterator012< random_access_iterator_tag, _Myvec::value_type, _Myvec::difference_type, _Myvec::const_pointer, _Myvec::const_reference, _Iterator_base >
typedef random_access_iterator_tag iterator_category
 
typedef _Myvec::value_type value_type
 
typedef _Myvec::difference_type difference_type
 
typedef _Myvec::const_pointer pointer
 
typedef _Myvec::const_reference reference
 

Public Member Functions

 _Vector_iterator ()
 
 _Vector_iterator (pointer _Parg, const _Container_base *_Pvector)
 
_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 _Vector_const_iterator< _Myvec >
 _Vector_const_iterator ()
 
 _Vector_const_iterator (_Tptr _Parg, const _Container_base *_Pvector)
 
_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
 
- Public Member Functions inherited from _Iterator_base0
void _Adopt (const void *)
 
const _Container_base0_Getcont () const
 

Additional Inherited Members

- Public Attributes inherited from _Vector_const_iterator< _Myvec >
_Tptr _Ptr
 

Member Typedef Documentation

template<class _Myvec>
typedef _Vector_const_iterator<_Myvec> _Vector_iterator< _Myvec >::_Mybase
template<class _Myvec>
typedef _Vector_iterator<_Myvec> _Vector_iterator< _Myvec >::_Myiter
template<class _Myvec>
typedef pointer _Vector_iterator< _Myvec >::_Unchecked_type
template<class _Myvec>
typedef _Myvec::difference_type _Vector_iterator< _Myvec >::difference_type
template<class _Myvec>
typedef random_access_iterator_tag _Vector_iterator< _Myvec >::iterator_category
template<class _Myvec>
typedef _Myvec::pointer _Vector_iterator< _Myvec >::pointer
template<class _Myvec>
typedef _Myvec::reference _Vector_iterator< _Myvec >::reference
template<class _Myvec>
typedef _Myvec::value_type _Vector_iterator< _Myvec >::value_type

Constructor & Destructor Documentation

template<class _Myvec>
_Vector_iterator< _Myvec >::_Vector_iterator ( )
inline
308  { // construct with null vector pointer
309  }
template<class _Myvec>
_Vector_iterator< _Myvec >::_Vector_iterator ( pointer  _Parg,
const _Container_base _Pvector 
)
inline
312  : _Mybase(_Parg, _Pvector)
313  { // construct with pointer _Parg
314  }
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:299

Member Function Documentation

template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::_Rechecked ( _Unchecked_type  _Right)
inline
319  { // reset from unchecked iterator
320  this->_Ptr = _Right;
321  return (*this);
322  }
_Tptr _Ptr
Definition: vector:265
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Myvec>
_Unchecked_type _Vector_iterator< _Myvec >::_Unchecked ( ) const
inline
325  { // make an unchecked iterator
326  return (this->_Ptr);
327  }
_Tptr _Ptr
Definition: vector:265
template<class _Myvec>
reference _Vector_iterator< _Myvec >::operator* ( ) const
inline
330  { // return designated object
331  return ((reference)**(_Mybase *)this);
332  }
_Myvec::reference reference
Definition: vector:305
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:299
template<class _Myvec>
_Myiter _Vector_iterator< _Myvec >::operator+ ( difference_type  _Off) const
inline
372  { // return this + integer
373  _Myiter _Tmp = *this;
374  return (_Tmp += _Off);
375  }
_Vector_iterator< _Myvec > _Myiter
Definition: vector:298
template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::operator++ ( )
inline
340  { // preincrement
341  ++*(_Mybase *)this;
342  return (*this);
343  }
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:299
template<class _Myvec>
_Myiter _Vector_iterator< _Myvec >::operator++ ( int  )
inline
346  { // postincrement
347  _Myiter _Tmp = *this;
348  ++*this;
349  return (_Tmp);
350  }
_Vector_iterator< _Myvec > _Myiter
Definition: vector:298
template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::operator+= ( difference_type  _Off)
inline
366  { // increment by integer
367  *(_Mybase *)this += _Off;
368  return (*this);
369  }
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:299
template<class _Myvec>
_Myiter _Vector_iterator< _Myvec >::operator- ( difference_type  _Off) const
inline
383  { // return this - integer
384  _Myiter _Tmp = *this;
385  return (_Tmp -= _Off);
386  }
_Vector_iterator< _Myvec > _Myiter
Definition: vector:298
template<class _Myvec>
difference_type _Vector_iterator< _Myvec >::operator- ( const _Mybase _Right) const
inline
389  { // return difference of iterators
390  return (*(_Mybase *)this - _Right);
391  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:299
template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::operator-- ( )
inline
353  { // predecrement
354  --*(_Mybase *)this;
355  return (*this);
356  }
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:299
template<class _Myvec>
_Myiter _Vector_iterator< _Myvec >::operator-- ( int  )
inline
359  { // postdecrement
360  _Myiter _Tmp = *this;
361  --*this;
362  return (_Tmp);
363  }
_Vector_iterator< _Myvec > _Myiter
Definition: vector:298
template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::operator-= ( difference_type  _Off)
inline
378  { // decrement by integer
379  return (*this += -_Off);
380  }
template<class _Myvec>
pointer _Vector_iterator< _Myvec >::operator-> ( ) const
inline
335  { // return pointer to class object
336  return (pointer_traits<pointer>::pointer_to(**this));
337  }
Definition: xmemory0:244
template<class _Myvec>
reference _Vector_iterator< _Myvec >::operator[] ( difference_type  _Off) const
inline
394  { // subscript
395  return (*(*this + _Off));
396  }

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