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::difference_type distance_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
340  { // construct with null node
341  }
template<class _Mylist>
_List_iterator< _Mylist >::_List_iterator ( _Nodeptr  _Pnode,
const _Mylist *  _Plist 
)
inline
344  : _Mybase(_Pnode, _Plist)
345  { // construct with node pointer _Pnode
346  }
_List_const_iterator< _Mylist > _Mybase
Definition: list:330

Member Function Documentation

template<class _Mylist>
_Myiter& _List_iterator< _Mylist >::_Rechecked ( _Unchecked_type  _Right)
inline
351  { // reset from unchecked iterator
352  this->_Ptr = _Right._Ptr;
353  return (*this);
354  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Mylist>
_Unchecked_type _List_iterator< _Mylist >::_Unchecked ( ) const
inline
357  { // make an unchecked iterator
358  return (_Unchecked_type(this->_Ptr, (_Mylist *)this->_Getcont()));
359  }
const _Container_base0 * _Getcont() const
Definition: xutility:57
_List_unchecked_iterator< _Mylist > _Unchecked_type
Definition: list:348
template<class _Mylist>
reference _List_iterator< _Mylist >::operator* ( ) const
inline
362  { // return designated value
363  return ((reference)**(_Mybase *)this);
364  }
_Mylist::reference reference
Definition: list:337
_List_const_iterator< _Mylist > _Mybase
Definition: list:330
template<class _Mylist>
_Myiter& _List_iterator< _Mylist >::operator++ ( )
inline
372  { // preincrement
373  ++(*(_Mybase *)this);
374  return (*this);
375  }
_List_const_iterator< _Mylist > _Mybase
Definition: list:330
template<class _Mylist>
_Myiter _List_iterator< _Mylist >::operator++ ( int  )
inline
378  { // postincrement
379  _Myiter _Tmp = *this;
380  ++*this;
381  return (_Tmp);
382  }
_List_iterator< _Mylist > _Myiter
Definition: list:329
template<class _Mylist>
_Myiter& _List_iterator< _Mylist >::operator-- ( )
inline
385  { // predecrement
386  --(*(_Mybase *)this);
387  return (*this);
388  }
_List_const_iterator< _Mylist > _Mybase
Definition: list:330
template<class _Mylist>
_Myiter _List_iterator< _Mylist >::operator-- ( int  )
inline
391  { // postdecrement
392  _Myiter _Tmp = *this;
393  --*this;
394  return (_Tmp);
395  }
_List_iterator< _Mylist > _Myiter
Definition: list:329
template<class _Mylist>
pointer _List_iterator< _Mylist >::operator-> ( ) const
inline
367  { // return pointer to class object
368  return (_STD pointer_traits<pointer>::pointer_to(**this));
369  }
Definition: xmemory0:198

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