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

Public Types

typedef _List_iterator< _Mylist > _Myiter
 
typedef _List_const_iterator< _Mylist > _Mybase
 
typedef bidirectional_iterator_tag iterator_category
 
typedef _Mylist::_Nodeptr _Nodeptr
 
typedef _Mylist::value_type value_type
 
typedef _Mylist::difference_type difference_type
 
typedef _Mylist::pointer pointer
 
typedef _Mylist::reference reference
 
typedef _List_unchecked_iterator< _Mylist > _Unchecked_type
 
- Public Types inherited from _List_const_iterator< _Mylist >
typedef _List_const_iterator< _Mylist > _Myiter
 
typedef _List_unchecked_const_iterator< _Mylist, _Iterator_base_Mybase
 
typedef bidirectional_iterator_tag iterator_category
 
typedef _Mylist::_Nodeptr _Nodeptr
 
typedef _Mylist::value_type value_type
 
typedef _Mylist::difference_type difference_type
 
typedef _Mylist::const_pointer pointer
 
typedef _Mylist::const_reference reference
 
typedef _List_unchecked_const_iterator< _Mylist > _Unchecked_type
 
- Public Types inherited from _List_unchecked_const_iterator< _Mylist, _Iterator_base >
typedef _List_unchecked_const_iterator< _Mylist, _Iterator_base_Myiter
 
typedef bidirectional_iterator_tag iterator_category
 
typedef _Mylist::_Nodeptr _Nodeptr
 
typedef _Mylist::value_type value_type
 
typedef _Mylist::difference_type difference_type
 
typedef _Mylist::const_pointer pointer
 
typedef _Mylist::const_reference reference
 
- Public Types inherited from _Iterator012< bidirectional_iterator_tag, _Mylist::value_type, _Mylist::difference_type, _Mylist::const_pointer, _Mylist::const_reference, _Iterator_base >
typedef bidirectional_iterator_tag iterator_category
 
typedef _Mylist::value_type value_type
 
typedef _Mylist::difference_type difference_type
 
typedef _Mylist::const_pointer pointer
 
typedef _Mylist::const_reference reference
 

Public Member Functions

 _List_iterator ()
 
 _List_iterator (_Nodeptr _Pnode, const _Mylist *_Plist)
 
_Myiter_Rechecked (_Unchecked_type _Right)
 
_Unchecked_type _Unchecked () const
 
reference operator* () const
 
pointer operator-> () const
 
_Myiteroperator++ ()
 
_Myiter operator++ (int)
 
_Myiteroperator-- ()
 
_Myiter operator-- (int)
 
- Public Member Functions inherited from _List_const_iterator< _Mylist >
 _List_const_iterator ()
 
 _List_const_iterator (_Nodeptr _Pnode, const _Mylist *_Plist)
 
_Myiter_Rechecked (_Unchecked_type _Right)
 
_Unchecked_type _Unchecked () const
 
reference operator* () const
 
_Myiteroperator++ ()
 
_Myiter operator++ (int)
 
_Myiteroperator-- ()
 
_Myiter operator-- (int)
 
bool operator== (const _Myiter &_Right) const
 
bool operator!= (const _Myiter &_Right) const
 
- Public Member Functions inherited from _List_unchecked_const_iterator< _Mylist, _Iterator_base >
 _List_unchecked_const_iterator ()
 
 _List_unchecked_const_iterator (_Nodeptr _Pnode, const _Mylist *_Plist)
 
reference operator* () const
 
pointer operator-> () const
 
_Myiteroperator++ ()
 
_Myiter operator++ (int)
 
_Myiteroperator-- ()
 
_Myiter operator-- (int)
 
bool operator== (const _Myiter &_Right) const
 
bool operator!= (const _Myiter &_Right) const
 
_Nodeptr _Mynode () const
 
- Public Member Functions inherited from _Iterator_base0
void _Adopt (const void *)
 
const _Container_base0_Getcont () const
 

Additional Inherited Members

- Public Attributes inherited from _List_unchecked_const_iterator< _Mylist, _Iterator_base >
_Nodeptr _Ptr
 

Member Typedef Documentation

template<class _Mylist>
typedef _List_const_iterator<_Mylist> _List_iterator< _Mylist >::_Mybase
template<class _Mylist>
typedef _List_iterator<_Mylist> _List_iterator< _Mylist >::_Myiter
template<class _Mylist>
typedef _Mylist::_Nodeptr _List_iterator< _Mylist >::_Nodeptr
template<class _Mylist>
typedef _List_unchecked_iterator<_Mylist> _List_iterator< _Mylist >::_Unchecked_type
template<class _Mylist>
typedef _Mylist::difference_type _List_iterator< _Mylist >::difference_type
template<class _Mylist>
typedef bidirectional_iterator_tag _List_iterator< _Mylist >::iterator_category
template<class _Mylist>
typedef _Mylist::pointer _List_iterator< _Mylist >::pointer
template<class _Mylist>
typedef _Mylist::reference _List_iterator< _Mylist >::reference
template<class _Mylist>
typedef _Mylist::value_type _List_iterator< _Mylist >::value_type

Constructor & Destructor Documentation

template<class _Mylist>
_List_iterator< _Mylist >::_List_iterator ( )
inline
339  { // construct with null node
340  }
template<class _Mylist>
_List_iterator< _Mylist >::_List_iterator ( _Nodeptr  _Pnode,
const _Mylist *  _Plist 
)
inline
343  : _Mybase(_Pnode, _Plist)
344  { // construct with node pointer _Pnode
345  }
_List_const_iterator< _Mylist > _Mybase
Definition: list:329

Member Function Documentation

template<class _Mylist>
_Myiter& _List_iterator< _Mylist >::_Rechecked ( _Unchecked_type  _Right)
inline
350  { // reset from unchecked iterator
351  this->_Ptr = _Right._Ptr;
352  return (*this);
353  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Mylist>
_Unchecked_type _List_iterator< _Mylist >::_Unchecked ( ) const
inline
356  { // make an unchecked iterator
357  return (_Unchecked_type(this->_Ptr, (_Mylist *)this->_Getcont()));
358  }
const _Container_base0 * _Getcont() const
Definition: xutility:77
_List_unchecked_iterator< _Mylist > _Unchecked_type
Definition: list:347
template<class _Mylist>
reference _List_iterator< _Mylist >::operator* ( ) const
inline
361  { // return designated value
362  return ((reference)**(_Mybase *)this);
363  }
_Mylist::reference reference
Definition: list:336
_List_const_iterator< _Mylist > _Mybase
Definition: list:329
template<class _Mylist>
_Myiter& _List_iterator< _Mylist >::operator++ ( )
inline
371  { // preincrement
372  ++(*(_Mybase *)this);
373  return (*this);
374  }
_List_const_iterator< _Mylist > _Mybase
Definition: list:329
template<class _Mylist>
_Myiter _List_iterator< _Mylist >::operator++ ( int  )
inline
377  { // postincrement
378  _Myiter _Tmp = *this;
379  ++*this;
380  return (_Tmp);
381  }
_List_iterator< _Mylist > _Myiter
Definition: list:328
template<class _Mylist>
_Myiter& _List_iterator< _Mylist >::operator-- ( )
inline
384  { // predecrement
385  --(*(_Mybase *)this);
386  return (*this);
387  }
_List_const_iterator< _Mylist > _Mybase
Definition: list:329
template<class _Mylist>
_Myiter _List_iterator< _Mylist >::operator-- ( int  )
inline
390  { // postdecrement
391  _Myiter _Tmp = *this;
392  --*this;
393  return (_Tmp);
394  }
_List_iterator< _Mylist > _Myiter
Definition: list:328
template<class _Mylist>
pointer _List_iterator< _Mylist >::operator-> ( ) const
inline
366  { // return pointer to class object
367  return (pointer_traits<pointer>::pointer_to(**this));
368  }
Definition: xmemory0:254

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