alternative Standard Libary  0.29.8
std::intrusive_list_iterator< Pointer, Reference > Template-Klassenreferenz

#include <intrusive_list.hpp>

Öffentliche Typen

using pointer = Pointer
 
using reference = Reference
 
using iterator_category = bidirectional_iterator_tag
 

Öffentliche Methoden

 intrusive_list_iterator ()
 
 intrusive_list_iterator (Pointer iterNode)
 
Reference operator* () const
 
Pointer operator-> () const
 
Pointer node () const
 
intrusive_list_iteratoroperator++ ()
 
intrusive_list_iteratoroperator-- ()
 
intrusive_list_iterator operator++ (int)
 
intrusive_list_iterator operator-- (int)
 
bool operator== (const intrusive_list_iterator &rhs) const
 
bool operator!= (const intrusive_list_iterator &rhs) const
 

Ausführliche Beschreibung

template<typename Pointer, typename Reference>
class std::intrusive_list_iterator< Pointer, Reference >

Dokumentation der benutzerdefinierten Datentypen

◆ iterator_category

template<typename Pointer , typename Reference >
using std::intrusive_list_iterator< Pointer, Reference >::iterator_category = bidirectional_iterator_tag

◆ pointer

template<typename Pointer , typename Reference >
using std::intrusive_list_iterator< Pointer, Reference >::pointer = Pointer

◆ reference

template<typename Pointer , typename Reference >
using std::intrusive_list_iterator< Pointer, Reference >::reference = Reference

Beschreibung der Konstruktoren und Destruktoren

◆ intrusive_list_iterator() [1/2]

template<typename Pointer , typename Reference >
std::intrusive_list_iterator< Pointer, Reference >::intrusive_list_iterator ( )
inline
60  : m_node(0)
61  {
62  }

◆ intrusive_list_iterator() [2/2]

template<typename Pointer , typename Reference >
std::intrusive_list_iterator< Pointer, Reference >::intrusive_list_iterator ( Pointer  iterNode)
inlineexplicit
64  : m_node(iterNode)
65  {
66  }

Dokumentation der Elementfunktionen

◆ node()

template<typename Pointer , typename Reference >
Pointer std::intrusive_list_iterator< Pointer, Reference >::node ( ) const
inline
78  {
79  return m_node;
80  }

◆ operator!=()

template<typename Pointer , typename Reference >
bool std::intrusive_list_iterator< Pointer, Reference >::operator!= ( const intrusive_list_iterator< Pointer, Reference > &  rhs) const
inline
109  {
110  return !(rhs == *this);
111  }

◆ operator*()

template<typename Pointer , typename Reference >
Reference std::intrusive_list_iterator< Pointer, Reference >::operator* ( ) const
inline
69  {
70  assert(m_node);
71  return *m_node;
72  }

◆ operator++() [1/2]

template<typename Pointer , typename Reference >
intrusive_list_iterator& std::intrusive_list_iterator< Pointer, Reference >::operator++ ( )
inline
83  {
84  m_node = static_cast<Pointer>(m_node->next);
85  return *this;
86  }

◆ operator++() [2/2]

template<typename Pointer , typename Reference >
intrusive_list_iterator std::intrusive_list_iterator< Pointer, Reference >::operator++ ( int  )
inline
93  {
95  ++(*this);
96  return copy;
97  }
intrusive_list_iterator()
Definition: intrusive_list.hpp:59
void copy(const T *first, const T *last, T *result)
Definition: algorithm.hpp:39

◆ operator--() [1/2]

template<typename Pointer , typename Reference >
intrusive_list_iterator& std::intrusive_list_iterator< Pointer, Reference >::operator-- ( )
inline
88  {
89  m_node = static_cast<Pointer>(m_node->prev);
90  return *this;
91  }

◆ operator--() [2/2]

template<typename Pointer , typename Reference >
intrusive_list_iterator std::intrusive_list_iterator< Pointer, Reference >::operator-- ( int  )
inline
99  {
101  --(*this);
102  return copy;
103  }
intrusive_list_iterator()
Definition: intrusive_list.hpp:59
void copy(const T *first, const T *last, T *result)
Definition: algorithm.hpp:39

◆ operator->()

template<typename Pointer , typename Reference >
Pointer std::intrusive_list_iterator< Pointer, Reference >::operator-> ( ) const
inline
74  {
75  return m_node;
76  }

◆ operator==()

template<typename Pointer , typename Reference >
bool std::intrusive_list_iterator< Pointer, Reference >::operator== ( const intrusive_list_iterator< Pointer, Reference > &  rhs) const
inline
105  {
106  return rhs.m_node == m_node;
107  }

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: