ReactOS  0.4.15-dev-4872-g8a3db97
_Slist_iterator< _Tp, _Traits > Class Template Reference

#include <_slist.h>

Inheritance diagram for _Slist_iterator< _Tp, _Traits >:
Collaboration diagram for _Slist_iterator< _Tp, _Traits >:

Public Types

typedef _Traits::value_type value_type
 
typedef _Traits::pointer pointer
 
typedef _Traits::reference reference
 
typedef forward_iterator_tag iterator_category
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef _Slist_iterator< _Tp, _Traits > _Self
 
typedef _Traits::_NonConstTraits _NonConstTraits
 
typedef _Slist_iterator< _Tp, _NonConstTraitsiterator
 
typedef _Traits::_ConstTraits _ConstTraits
 
typedef _Slist_iterator< _Tp, _ConstTraitsconst_iterator
 
typedef _Slist_node< value_type_Node
 
- Public Types inherited from _Slist_iterator_base
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef forward_iterator_tag iterator_category
 

Public Member Functions

 _Slist_iterator (_Slist_node_base *__x)
 
 _Slist_iterator ()
 
 _Slist_iterator (const iterator &__x)
 
reference operator * () const
 
_STLP_DEFINE_ARROW_OPERATOR _Selfoperator++ ()
 
_Self operator++ (int)
 
bool operator== (const_iterator __y) const
 
bool operator!= (const_iterator __y) const
 
- Public Member Functions inherited from _Slist_iterator_base
 _Slist_iterator_base (_Slist_node_base *__x)
 
void _M_incr ()
 

Additional Inherited Members

- Public Attributes inherited from _Slist_iterator_base
_Slist_node_base_M_node
 

Detailed Description

template<class _Tp, class _Traits>
class _Slist_iterator< _Tp, _Traits >

Definition at line 80 of file _slist.h.

Member Typedef Documentation

◆ _ConstTraits

template<class _Tp , class _Traits >
typedef _Traits::_ConstTraits _Slist_iterator< _Tp, _Traits >::_ConstTraits

Definition at line 92 of file _slist.h.

◆ _Node

template<class _Tp , class _Traits >
typedef _Slist_node<value_type> _Slist_iterator< _Tp, _Traits >::_Node

Definition at line 95 of file _slist.h.

◆ _NonConstTraits

template<class _Tp , class _Traits >
typedef _Traits::_NonConstTraits _Slist_iterator< _Tp, _Traits >::_NonConstTraits

Definition at line 90 of file _slist.h.

◆ _Self

template<class _Tp , class _Traits >
typedef _Slist_iterator<_Tp, _Traits> _Slist_iterator< _Tp, _Traits >::_Self

Definition at line 89 of file _slist.h.

◆ const_iterator

template<class _Tp , class _Traits >
typedef _Slist_iterator<_Tp, _ConstTraits> _Slist_iterator< _Tp, _Traits >::const_iterator

Definition at line 93 of file _slist.h.

◆ difference_type

template<class _Tp , class _Traits >
typedef ptrdiff_t _Slist_iterator< _Tp, _Traits >::difference_type

Definition at line 87 of file _slist.h.

◆ iterator

template<class _Tp , class _Traits >
typedef _Slist_iterator<_Tp, _NonConstTraits> _Slist_iterator< _Tp, _Traits >::iterator

Definition at line 91 of file _slist.h.

◆ iterator_category

template<class _Tp , class _Traits >
typedef forward_iterator_tag _Slist_iterator< _Tp, _Traits >::iterator_category

Definition at line 85 of file _slist.h.

◆ pointer

template<class _Tp , class _Traits >
typedef _Traits::pointer _Slist_iterator< _Tp, _Traits >::pointer

Definition at line 83 of file _slist.h.

◆ reference

template<class _Tp , class _Traits >
typedef _Traits::reference _Slist_iterator< _Tp, _Traits >::reference

Definition at line 84 of file _slist.h.

◆ size_type

template<class _Tp , class _Traits >
typedef size_t _Slist_iterator< _Tp, _Traits >::size_type

Definition at line 86 of file _slist.h.

◆ value_type

template<class _Tp , class _Traits >
typedef _Traits::value_type _Slist_iterator< _Tp, _Traits >::value_type

Definition at line 82 of file _slist.h.

Constructor & Destructor Documentation

◆ _Slist_iterator() [1/3]

template<class _Tp , class _Traits >
_Slist_iterator< _Tp, _Traits >::_Slist_iterator ( _Slist_node_base __x)
inlineexplicit

Definition at line 97 of file _slist.h.

97 : _Slist_iterator_base(__x) {}
_Slist_iterator_base(_Slist_node_base *__x)
Definition: _slist.h:72

◆ _Slist_iterator() [2/3]

template<class _Tp , class _Traits >
_Slist_iterator< _Tp, _Traits >::_Slist_iterator ( )
inline

Definition at line 98 of file _slist.h.

_Slist_iterator_base(_Slist_node_base *__x)
Definition: _slist.h:72

◆ _Slist_iterator() [3/3]

template<class _Tp , class _Traits >
_Slist_iterator< _Tp, _Traits >::_Slist_iterator ( const iterator __x)
inline

Definition at line 100 of file _slist.h.

100 : _Slist_iterator_base(__x._M_node) {}
_Slist_iterator_base(_Slist_node_base *__x)
Definition: _slist.h:72

Member Function Documentation

◆ operator *()

template<class _Tp , class _Traits >
reference _Slist_iterator< _Tp, _Traits >::operator * ( ) const
inline

Definition at line 102 of file _slist.h.

102 { return __STATIC_CAST(_Node*, this->_M_node)->_M_data; }
#define __STATIC_CAST(__x, __y)
Definition: features.h:585
_Slist_node< value_type > _Node
Definition: _slist.h:95
_Slist_node_base * _M_node
Definition: _slist.h:70

◆ operator!=()

template<class _Tp , class _Traits >
bool _Slist_iterator< _Tp, _Traits >::operator!= ( const_iterator  __y) const
inline

Definition at line 119 of file _slist.h.

119  {
120  return this->_M_node != __y._M_node;
121  }
_Slist_node_base * _M_node
Definition: _slist.h:70

◆ operator++() [1/2]

template<class _Tp , class _Traits >
_STLP_DEFINE_ARROW_OPERATOR _Self& _Slist_iterator< _Tp, _Traits >::operator++ ( )
inline

Definition at line 106 of file _slist.h.

106  {
107  _M_incr();
108  return *this;
109  }

◆ operator++() [2/2]

template<class _Tp , class _Traits >
_Self _Slist_iterator< _Tp, _Traits >::operator++ ( int  )
inline

Definition at line 110 of file _slist.h.

110  {
111  _Self __tmp = *this;
112  _M_incr();
113  return __tmp;
114  }
_Slist_iterator< _Tp, _Traits > _Self
Definition: _slist.h:89

◆ operator==()

template<class _Tp , class _Traits >
bool _Slist_iterator< _Tp, _Traits >::operator== ( const_iterator  __y) const
inline

Definition at line 116 of file _slist.h.

116  {
117  return this->_M_node == __y._M_node;
118  }
_Slist_node_base * _M_node
Definition: _slist.h:70

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