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

Public Types

typedef _Flist_iterator< _Mylist > _Myiter
 
typedef _Flist_const_iterator< _Mylist > _Mybase
 
typedef forward_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 _Flist_unchecked_iterator< _Mylist > _Unchecked_type
 
- Public Types inherited from _Flist_const_iterator< _Mylist >
typedef _Flist_const_iterator< _Mylist > _Myiter
 
typedef _Flist_unchecked_const_iterator< _Mylist, _Iterator_base_Mybase
 
typedef forward_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 _Flist_unchecked_const_iterator< _Mylist > _Unchecked_type
 
- Public Types inherited from _Flist_unchecked_const_iterator< _Mylist, _Iterator_base >
typedef _Flist_unchecked_const_iterator< _Mylist, _Iterator_base_Myiter
 
typedef forward_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< forward_iterator_tag, _Mylist::value_type, _Mylist::difference_type, _Mylist::const_pointer, _Mylist::const_reference, _Iterator_base >
typedef forward_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

 _Flist_iterator ()
 
 _Flist_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)
 
- Public Member Functions inherited from _Flist_const_iterator< _Mylist >
 _Flist_const_iterator ()
 
 _Flist_const_iterator (_Nodeptr _Pnode, const _Mylist *_Plist)
 
_Myiter_Rechecked (_Unchecked_type _Right)
 
_Unchecked_type _Unchecked () const
 
reference operator* () const
 
_Myiteroperator++ ()
 
_Myiter operator++ (int)
 
bool operator== (const _Myiter &_Right) const
 
bool operator!= (const _Myiter &_Right) const
 
- Public Member Functions inherited from _Flist_unchecked_const_iterator< _Mylist, _Iterator_base >
 _Flist_unchecked_const_iterator ()
 
 _Flist_unchecked_const_iterator (_Nodeptr _Pnode, const _Mylist *_Plist)
 
reference operator* () const
 
pointer operator-> () const
 
_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 _Flist_unchecked_const_iterator< _Mylist, _Iterator_base >
_Nodeptr _Ptr
 

Member Typedef Documentation

template<class _Mylist>
typedef _Flist_const_iterator<_Mylist> _Flist_iterator< _Mylist >::_Mybase
template<class _Mylist>
typedef _Flist_iterator<_Mylist> _Flist_iterator< _Mylist >::_Myiter
template<class _Mylist>
typedef _Mylist::_Nodeptr _Flist_iterator< _Mylist >::_Nodeptr
template<class _Mylist>
typedef _Flist_unchecked_iterator<_Mylist> _Flist_iterator< _Mylist >::_Unchecked_type
template<class _Mylist>
typedef _Mylist::difference_type _Flist_iterator< _Mylist >::difference_type
template<class _Mylist>
typedef forward_iterator_tag _Flist_iterator< _Mylist >::iterator_category
template<class _Mylist>
typedef _Mylist::pointer _Flist_iterator< _Mylist >::pointer
template<class _Mylist>
typedef _Mylist::reference _Flist_iterator< _Mylist >::reference
template<class _Mylist>
typedef _Mylist::value_type _Flist_iterator< _Mylist >::value_type

Constructor & Destructor Documentation

template<class _Mylist>
_Flist_iterator< _Mylist >::_Flist_iterator ( )
inline
275  { // construct with null node
276  }
template<class _Mylist>
_Flist_iterator< _Mylist >::_Flist_iterator ( _Nodeptr  _Pnode,
const _Mylist *  _Plist 
)
inline
279  : _Mybase(_Pnode, _Plist)
280  { // construct with node pointer _Pnode
281  }
_Flist_const_iterator< _Mylist > _Mybase
Definition: forward_list:265

Member Function Documentation

template<class _Mylist>
_Myiter& _Flist_iterator< _Mylist >::_Rechecked ( _Unchecked_type  _Right)
inline
286  { // reset from unchecked iterator
287  this->_Ptr = _Right._Ptr;
288  return (*this);
289  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Mylist>
_Unchecked_type _Flist_iterator< _Mylist >::_Unchecked ( ) const
inline
292  { // make an unchecked iterator
293  return (_Unchecked_type(this->_Ptr, static_cast<const _Mylist *>(this->_Getcont())));
294  }
const _Container_base0 * _Getcont() const
Definition: xutility:77
_Flist_unchecked_iterator< _Mylist > _Unchecked_type
Definition: forward_list:283
template<class _Mylist>
reference _Flist_iterator< _Mylist >::operator* ( ) const
inline
297  { // return designated value
298  return ((reference)**(_Mybase *)this);
299  }
_Mylist::reference reference
Definition: forward_list:272
_Flist_const_iterator< _Mylist > _Mybase
Definition: forward_list:265
template<class _Mylist>
_Myiter& _Flist_iterator< _Mylist >::operator++ ( )
inline
307  { // preincrement
308  ++(*(_Mybase *)this);
309  return (*this);
310  }
_Flist_const_iterator< _Mylist > _Mybase
Definition: forward_list:265
template<class _Mylist>
_Myiter _Flist_iterator< _Mylist >::operator++ ( int  )
inline
313  { // postincrement
314  _Myiter _Tmp = *this;
315  ++*this;
316  return (_Tmp);
317  }
_Flist_iterator< _Mylist > _Myiter
Definition: forward_list:264
template<class _Mylist>
pointer _Flist_iterator< _Mylist >::operator-> ( ) const
inline
302  { // return pointer to class object
303  return (pointer_traits<pointer>::pointer_to(**this));
304  }
Definition: xmemory0:254

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