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

Public Types

typedef _List_unchecked_const_iterator< _Mylist, _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, _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_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 Attributes

_Nodeptr _Ptr
 

Member Typedef Documentation

template<class _Mylist, class _Base = _Iterator_base0>
typedef _List_unchecked_const_iterator<_Mylist, _Base> _List_unchecked_const_iterator< _Mylist, _Base >::_Myiter
template<class _Mylist, class _Base = _Iterator_base0>
typedef _Mylist::_Nodeptr _List_unchecked_const_iterator< _Mylist, _Base >::_Nodeptr
template<class _Mylist, class _Base = _Iterator_base0>
typedef _Mylist::difference_type _List_unchecked_const_iterator< _Mylist, _Base >::difference_type
template<class _Mylist, class _Base = _Iterator_base0>
typedef bidirectional_iterator_tag _List_unchecked_const_iterator< _Mylist, _Base >::iterator_category
template<class _Mylist, class _Base = _Iterator_base0>
typedef _Mylist::const_pointer _List_unchecked_const_iterator< _Mylist, _Base >::pointer
template<class _Mylist, class _Base = _Iterator_base0>
typedef _Mylist::const_reference _List_unchecked_const_iterator< _Mylist, _Base >::reference
template<class _Mylist, class _Base = _Iterator_base0>
typedef _Mylist::value_type _List_unchecked_const_iterator< _Mylist, _Base >::value_type

Constructor & Destructor Documentation

template<class _Mylist, class _Base = _Iterator_base0>
_List_unchecked_const_iterator< _Mylist, _Base >::_List_unchecked_const_iterator ( )
inline
38  : _Ptr()
39  { // construct with null node pointer
40  }
_Nodeptr _Ptr
Definition: list:99
template<class _Mylist, class _Base = _Iterator_base0>
_List_unchecked_const_iterator< _Mylist, _Base >::_List_unchecked_const_iterator ( _Nodeptr  _Pnode,
const _Mylist *  _Plist 
)
inline
43  : _Ptr(_Pnode)
44  { // construct with node pointer _Pnode
45  this->_Adopt(_Plist);
46  }
_Nodeptr _Ptr
Definition: list:99

Member Function Documentation

template<class _Mylist, class _Base = _Iterator_base0>
_Nodeptr _List_unchecked_const_iterator< _Mylist, _Base >::_Mynode ( ) const
inline
95  { // return node pointer
96  return (_Ptr);
97  }
_Nodeptr _Ptr
Definition: list:99
template<class _Mylist, class _Base = _Iterator_base0>
bool _List_unchecked_const_iterator< _Mylist, _Base >::operator!= ( const _Myiter _Right) const
inline
90  { // test for iterator inequality
91  return (!(*this == _Right));
92  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Mylist, class _Base = _Iterator_base0>
reference _List_unchecked_const_iterator< _Mylist, _Base >::operator* ( ) const
inline
49  { // return designated value
50  return (_Mylist::_Myval(_Ptr));
51  }
_Nodeptr _Ptr
Definition: list:99
template<class _Mylist, class _Base = _Iterator_base0>
_Myiter& _List_unchecked_const_iterator< _Mylist, _Base >::operator++ ( )
inline
59  { // preincrement
60  _Ptr = _Mylist::_Nextnode(_Ptr);
61  return (*this);
62  }
_Nodeptr _Ptr
Definition: list:99
template<class _Mylist, class _Base = _Iterator_base0>
_Myiter _List_unchecked_const_iterator< _Mylist, _Base >::operator++ ( int  )
inline
65  { // postincrement
66  _Myiter _Tmp = *this;
67  ++*this;
68  return (_Tmp);
69  }
_List_unchecked_const_iterator< _Mylist, _Base > _Myiter
Definition: list:28
template<class _Mylist, class _Base = _Iterator_base0>
_Myiter& _List_unchecked_const_iterator< _Mylist, _Base >::operator-- ( )
inline
72  { // predecrement
73  _Ptr = _Mylist::_Prevnode(_Ptr);
74  return (*this);
75  }
_Nodeptr _Ptr
Definition: list:99
template<class _Mylist, class _Base = _Iterator_base0>
_Myiter _List_unchecked_const_iterator< _Mylist, _Base >::operator-- ( int  )
inline
78  { // postdecrement
79  _Myiter _Tmp = *this;
80  --*this;
81  return (_Tmp);
82  }
_List_unchecked_const_iterator< _Mylist, _Base > _Myiter
Definition: list:28
template<class _Mylist, class _Base = _Iterator_base0>
pointer _List_unchecked_const_iterator< _Mylist, _Base >::operator-> ( ) const
inline
54  { // return pointer to class object
55  return (pointer_traits<pointer>::pointer_to(**this));
56  }
Definition: xmemory0:244
template<class _Mylist, class _Base = _Iterator_base0>
bool _List_unchecked_const_iterator< _Mylist, _Base >::operator== ( const _Myiter _Right) const
inline
85  { // test for iterator equality
86  return (_Ptr == _Right._Ptr);
87  }
_Nodeptr _Ptr
Definition: list:99
constexpr const _Ty &() _Right
Definition: algorithm:3591

Member Data Documentation

template<class _Mylist, class _Base = _Iterator_base0>
_Nodeptr _List_unchecked_const_iterator< _Mylist, _Base >::_Ptr

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