STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_Vb_iterator< _Alloc > Class Template Reference
Inheritance diagram for _Vb_iterator< _Alloc >:
_Vb_const_iterator< _Alloc > _Vb_iter_base< _Alloc > _Iterator012< random_access_iterator_tag, bool, _Alloc::difference_type, bool *, bool, _Iterator_base > _Iterator_base0

Public Types

typedef _Vb_const_iterator< _Alloc > _Mybase
 
typedef _Vb_iterator< _Alloc > _Mytype
 
typedef _Vb_reference< _Alloc > _Reft
 
typedef bool const_reference
 
typedef random_access_iterator_tag iterator_category
 
typedef bool value_type
 
typedef _Alloc::size_type size_type
 
typedef _Alloc::difference_type difference_type
 
typedef _Reftpointer
 
typedef _Reft reference
 
- Public Types inherited from _Vb_const_iterator< _Alloc >
typedef _Vb_iter_base< _Alloc > _Mybase
 
typedef _Vb_const_iterator< _Alloc > _Mytype
 
typedef _Vb_reference< _Alloc > _Reft
 
typedef bool const_reference
 
typedef random_access_iterator_tag iterator_category
 
typedef bool value_type
 
typedef _Alloc::size_type size_type
 
typedef _Alloc::difference_type difference_type
 
typedef const_referencepointer
 
typedef const_reference reference
 
- Public Types inherited from _Vb_iter_base< _Alloc >
typedef _Alloc::size_type _Sizet
 
typedef vector< bool, _Alloc > _Mycont
 
- Public Types inherited from _Iterator012< random_access_iterator_tag, bool, _Alloc::difference_type, bool *, bool, _Iterator_base >
typedef random_access_iterator_tag iterator_category
 
typedef bool value_type
 
typedef _Alloc::difference_type difference_type
 
typedef boolpointer
 
typedef bool reference
 

Public Member Functions

 _Vb_iterator ()
 
 _Vb_iterator (_Vbase *_Ptr, _Container_base *_Mypvbool)
 
reference operator* () const
 
_Mytypeoperator++ ()
 
_Mytype operator++ (int)
 
_Mytypeoperator-- ()
 
_Mytype operator-- (int)
 
_Mytypeoperator+= (difference_type _Off)
 
_Mytype operator+ (difference_type _Off) const
 
_Mytypeoperator-= (difference_type _Off)
 
_Mytype operator- (difference_type _Off) const
 
difference_type operator- (const _Mybase &_Right) const
 
reference operator[] (difference_type _Off) const
 
- Public Member Functions inherited from _Vb_const_iterator< _Alloc >
 _Vb_const_iterator ()
 
 _Vb_const_iterator (const _Vbase *_Ptr, const _Container_base *_Mypvbool)
 
const_reference operator* () const
 
_Mytypeoperator++ ()
 
_Mytype operator++ (int)
 
_Mytypeoperator-- ()
 
_Mytype operator-- (int)
 
_Mytypeoperator+= (difference_type _Off)
 
_Mytype operator+ (difference_type _Off) const
 
_Mytypeoperator-= (difference_type _Off)
 
_Mytype operator- (difference_type _Off) const
 
difference_type operator- (const _Mytype &_Right) const
 
const_reference operator[] (difference_type _Off) const
 
bool operator== (const _Mytype &_Right) const
 
bool operator!= (const _Mytype &_Right) const
 
bool operator< (const _Mytype &_Right) const
 
bool operator> (const _Mytype &_Right) const
 
bool operator<= (const _Mytype &_Right) const
 
bool operator>= (const _Mytype &_Right) const
 
void _Compat (const _Mytype &) const
 
void _Dec ()
 
void _Inc ()
 
- Public Member Functions inherited from _Vb_iter_base< _Alloc >
 _Vb_iter_base ()
 
 _Vb_iter_base (const _Vbase *_Ptr, _Sizet _Off, const _Container_base *_Mypvbool)
 
void _Advance (_Sizet _Off)
 
int _Valid (_Sizet _Inc) const
 
- Public Member Functions inherited from _Iterator_base0
void _Adopt (const void *)
 
const _Container_base0_Getcont () const
 

Additional Inherited Members

- Public Attributes inherited from _Vb_iter_base< _Alloc >
const _Vbase_Myptr
 
_Sizet _Myoff
 

Member Typedef Documentation

template<class _Alloc>
typedef _Vb_const_iterator<_Alloc> _Vb_iterator< _Alloc >::_Mybase
template<class _Alloc>
typedef _Vb_iterator<_Alloc> _Vb_iterator< _Alloc >::_Mytype
template<class _Alloc>
typedef _Vb_reference<_Alloc> _Vb_iterator< _Alloc >::_Reft
template<class _Alloc>
typedef bool _Vb_iterator< _Alloc >::const_reference
template<class _Alloc>
typedef _Alloc::difference_type _Vb_iterator< _Alloc >::difference_type
template<class _Alloc>
typedef random_access_iterator_tag _Vb_iterator< _Alloc >::iterator_category
template<class _Alloc>
typedef _Reft* _Vb_iterator< _Alloc >::pointer
template<class _Alloc>
typedef _Reft _Vb_iterator< _Alloc >::reference
template<class _Alloc>
typedef _Alloc::size_type _Vb_iterator< _Alloc >::size_type
template<class _Alloc>
typedef bool _Vb_iterator< _Alloc >::value_type

Constructor & Destructor Documentation

template<class _Alloc>
_Vb_iterator< _Alloc >::_Vb_iterator ( )
inline
2436  { // construct with null reference
2437  }
template<class _Alloc>
_Vb_iterator< _Alloc >::_Vb_iterator ( _Vbase _Ptr,
_Container_base _Mypvbool 
)
inline
2440  : _Mybase(_Ptr, _Mypvbool)
2441  { // construct with offset and pointer
2442  }
_Vb_const_iterator< _Alloc > _Mybase
Definition: vector:2422

Member Function Documentation

template<class _Alloc>
reference _Vb_iterator< _Alloc >::operator* ( ) const
inline
2445  { // return (reference to) designated object
2446  return (_Reft(*this));
2447  }
_Vb_reference< _Alloc > _Reft
Definition: vector:2425
template<class _Alloc>
_Mytype _Vb_iterator< _Alloc >::operator+ ( difference_type  _Off) const
inline
2482  { // return this + integer
2483  _Mytype _Tmp = *this;
2484  return (_Tmp += _Off);
2485  }
_Vb_iterator< _Alloc > _Mytype
Definition: vector:2423
template<class _Alloc>
_Mytype& _Vb_iterator< _Alloc >::operator++ ( )
inline
2450  { // preincrement
2451  ++*(_Mybase *)this;
2452  return (*this);
2453  }
_Vb_const_iterator< _Alloc > _Mybase
Definition: vector:2422
template<class _Alloc>
_Mytype _Vb_iterator< _Alloc >::operator++ ( int  )
inline
2456  { // postincrement
2457  _Mytype _Tmp = *this;
2458  ++*this;
2459  return (_Tmp);
2460  }
_Vb_iterator< _Alloc > _Mytype
Definition: vector:2423
template<class _Alloc>
_Mytype& _Vb_iterator< _Alloc >::operator+= ( difference_type  _Off)
inline
2476  { // increment by integer
2477  *(_Mybase *)this += _Off;
2478  return (*this);
2479  }
_Vb_const_iterator< _Alloc > _Mybase
Definition: vector:2422
template<class _Alloc>
_Mytype _Vb_iterator< _Alloc >::operator- ( difference_type  _Off) const
inline
2493  { // return this - integer
2494  _Mytype _Tmp = *this;
2495  return (_Tmp -= _Off);
2496  }
_Vb_iterator< _Alloc > _Mytype
Definition: vector:2423
template<class _Alloc>
difference_type _Vb_iterator< _Alloc >::operator- ( const _Mybase _Right) const
inline
2499  { // return difference of iterators
2500  return (*(_Mybase *)this - _Right);
2501  }
_Vb_const_iterator< _Alloc > _Mybase
Definition: vector:2422
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Alloc>
_Mytype& _Vb_iterator< _Alloc >::operator-- ( )
inline
2463  { // predecrement
2464  --*(_Mybase *)this;
2465  return (*this);
2466  }
_Vb_const_iterator< _Alloc > _Mybase
Definition: vector:2422
template<class _Alloc>
_Mytype _Vb_iterator< _Alloc >::operator-- ( int  )
inline
2469  { // postdecrement
2470  _Mytype _Tmp = *this;
2471  --*this;
2472  return (_Tmp);
2473  }
_Vb_iterator< _Alloc > _Mytype
Definition: vector:2423
template<class _Alloc>
_Mytype& _Vb_iterator< _Alloc >::operator-= ( difference_type  _Off)
inline
2488  { // decrement by integer
2489  return (*this += -_Off);
2490  }
template<class _Alloc>
reference _Vb_iterator< _Alloc >::operator[] ( difference_type  _Off) const
inline
2504  { // subscript
2505  return (*(*this + _Off));
2506  }

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