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

Public Types

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 _Alloc::difference_type distance_type
 
typedef boolpointer
 
typedef bool reference
 

Public Member Functions

 _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
 

Public Attributes

const _Vbase_Myptr
 
_Sizet _Myoff
 

Member Typedef Documentation

template<class _Alloc >
typedef vector<_Bool, _Alloc> _Vb_iter_base< _Alloc >::_Mycont
template<class _Alloc >
typedef _Alloc::size_type _Vb_iter_base< _Alloc >::_Sizet

Constructor & Destructor Documentation

template<class _Alloc >
_Vb_iter_base< _Alloc >::_Vb_iter_base ( )
inline
1865  : _Myptr(0), _Myoff(0)
1866  { // construct with null pointer
1867  }
const _Vbase * _Myptr
Definition: vector:1899
_Sizet _Myoff
Definition: vector:1900
template<class _Alloc >
_Vb_iter_base< _Alloc >::_Vb_iter_base ( const _Vbase _Ptr,
_Sizet  _Off,
const _Container_base _Mypvbool 
)
inline
1871  : _Myptr(_Ptr), _Myoff(_Off)
1872  { // construct with offset and pointer
1873  this->_Adopt(_Mypvbool);
1874  }
const _Vbase * _Myptr
Definition: vector:1899
void _Adopt(const void *)
Definition: xutility:53
_Sizet _Myoff
Definition: vector:1900

Member Function Documentation

template<class _Alloc >
void _Vb_iter_base< _Alloc >::_Advance ( _Sizet  _Off)
inline
1877  { // advance iterator by _Off
1878  _Myoff += _Off;
1879  _Myptr += _Myoff / _VBITS;
1880  _Myoff %= _VBITS;
1881  }
const _Vbase * _Myptr
Definition: vector:1899
const int _VBITS
Definition: vector:1848
_Sizet _Myoff
Definition: vector:1900
template<class _Alloc >
int _Vb_iter_base< _Alloc >::_Valid ( _Sizet  _Inc) const
inline
1884  { // test for valid incremented offset
1885  #if _ITERATOR_DEBUG_LEVEL == 2
1886  _Sizet _Mysize = ((_Mycont *)this->_Getcont())->_Mysize;
1887 
1888  _Inc += _Myoff;
1889  _Inc += _VBITS * (_Myptr
1890  - (((_Mycont *)this->_Getcont())->_Myvec)._Myfirst);
1891  return (_Inc < _Mysize ? -1 : _Inc == _Mysize ? 0 : +1);
1892 
1893  #else /* _ITERATOR_DEBUG_LEVEL == 2 */
1894 
1895  return (-1);
1896  #endif /* _ITERATOR_DEBUG_LEVEL == 2 */
1897  }
_Alloc::size_type _Sizet
Definition: vector:1861
const _Container_base0 * _Getcont() const
Definition: xutility:57
vector< _Bool, _Alloc > _Mycont
Definition: vector:1862
const _Vbase * _Myptr
Definition: vector:1899
const int _VBITS
Definition: vector:1848
_Sizet _Myoff
Definition: vector:1900

Member Data Documentation

template<class _Alloc >
_Sizet _Vb_iter_base< _Alloc >::_Myoff
template<class _Alloc >
const _Vbase* _Vb_iter_base< _Alloc >::_Myptr

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