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::difference_type distance_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
301  { // construct with null vector pointer
302  }
template<class _Myvec>
_Vector_iterator< _Myvec >::_Vector_iterator ( pointer  _Parg,
const _Container_base _Pvector 
)
inline
305  : _Mybase(_Parg, _Pvector)
306  { // construct with pointer _Parg
307  }
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:292

Member Function Documentation

template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::_Rechecked ( _Unchecked_type  _Right)
inline
312  { // reset from unchecked iterator
313  this->_Ptr = _Right;
314  return (*this);
315  }
_Tptr _Ptr
Definition: vector:258
const _Ty & _Right
Definition: algorithm:4087
template<class _Myvec>
_Unchecked_type _Vector_iterator< _Myvec >::_Unchecked ( ) const
inline
318  { // make an unchecked iterator
319  return (_Unchecked_type(this->_Ptr));
320  }
pointer _Unchecked_type
Definition: vector:309
_Tptr _Ptr
Definition: vector:258
template<class _Myvec>
reference _Vector_iterator< _Myvec >::operator* ( ) const
inline
323  { // return designated object
324  return ((reference)**(_Mybase *)this);
325  }
_Myvec::reference reference
Definition: vector:298
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:292
template<class _Myvec>
_Myiter _Vector_iterator< _Myvec >::operator+ ( difference_type  _Off) const
inline
365  { // return this + integer
366  _Myiter _Tmp = *this;
367  return (_Tmp += _Off);
368  }
_Vector_iterator< _Myvec > _Myiter
Definition: vector:291
template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::operator++ ( )
inline
333  { // preincrement
334  ++*(_Mybase *)this;
335  return (*this);
336  }
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:292
template<class _Myvec>
_Myiter _Vector_iterator< _Myvec >::operator++ ( int  )
inline
339  { // postincrement
340  _Myiter _Tmp = *this;
341  ++*this;
342  return (_Tmp);
343  }
_Vector_iterator< _Myvec > _Myiter
Definition: vector:291
template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::operator+= ( difference_type  _Off)
inline
359  { // increment by integer
360  *(_Mybase *)this += _Off;
361  return (*this);
362  }
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:292
template<class _Myvec>
_Myiter _Vector_iterator< _Myvec >::operator- ( difference_type  _Off) const
inline
376  { // return this - integer
377  _Myiter _Tmp = *this;
378  return (_Tmp -= _Off);
379  }
_Vector_iterator< _Myvec > _Myiter
Definition: vector:291
template<class _Myvec>
difference_type _Vector_iterator< _Myvec >::operator- ( const _Mybase _Right) const
inline
382  { // return difference of iterators
383  return (*(_Mybase *)this - _Right);
384  }
const _Ty & _Right
Definition: algorithm:4087
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:292
template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::operator-- ( )
inline
346  { // predecrement
347  --*(_Mybase *)this;
348  return (*this);
349  }
_Vector_const_iterator< _Myvec > _Mybase
Definition: vector:292
template<class _Myvec>
_Myiter _Vector_iterator< _Myvec >::operator-- ( int  )
inline
352  { // postdecrement
353  _Myiter _Tmp = *this;
354  --*this;
355  return (_Tmp);
356  }
_Vector_iterator< _Myvec > _Myiter
Definition: vector:291
template<class _Myvec>
_Myiter& _Vector_iterator< _Myvec >::operator-= ( difference_type  _Off)
inline
371  { // decrement by integer
372  return (*this += -_Off);
373  }
template<class _Myvec>
pointer _Vector_iterator< _Myvec >::operator-> ( ) const
inline
328  { // return pointer to class object
329  return (_STD pointer_traits<pointer>::pointer_to(**this));
330  }
Definition: xmemory0:198
template<class _Myvec>
reference _Vector_iterator< _Myvec >::operator[] ( difference_type  _Off) const
inline
387  { // subscript
388  return (*(*this + _Off));
389  }

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