KiCad PCB EDA Suite
DLIST_ITERATOR< T > Class Template Reference

#include <iterators.h>

Inheritance diagram for DLIST_ITERATOR< T >:

Public Member Functions

 DLIST_ITERATOR (T obj)
 
DLIST_ITERATOR< T > & operator++ ()
 
DLIST_ITERATOR< T > & operator-- ()
 
bool operator== (DLIST_ITERATOR< T > other) const
 
bool operator!= (DLIST_ITERATOR< T > other) const
 
reference operator* ()
 

Private Types

using reference = typename DLIST_ITERATOR< T >::reference
 

Private Attributes

m_obj
 

Detailed Description

template<class T>
class DLIST_ITERATOR< T >

Definition at line 31 of file iterators.h.

Member Typedef Documentation

template<class T>
using DLIST_ITERATOR< T >::reference = typename DLIST_ITERATOR<T>::reference
private

Definition at line 36 of file iterators.h.

Constructor & Destructor Documentation

template<class T>
DLIST_ITERATOR< T >::DLIST_ITERATOR ( obj)
inlineexplicit

Definition at line 39 of file iterators.h.

39  :
40  m_obj(obj) {}

Member Function Documentation

template<class T>
bool DLIST_ITERATOR< T >::operator!= ( DLIST_ITERATOR< T >  other) const
inline

Definition at line 57 of file iterators.h.

58  {
59  return !(*this == other);
60  }
template<class T>
reference DLIST_ITERATOR< T >::operator* ( )
inline

Definition at line 62 of file iterators.h.

References DLIST_ITERATOR< T >::m_obj.

63  {
64  return m_obj;
65  }
template<class T>
DLIST_ITERATOR<T>& DLIST_ITERATOR< T >::operator++ ( )
inline

Definition at line 42 of file iterators.h.

43  {
44  m_obj = m_obj->Next(); return *this;
45  }
template<class T>
DLIST_ITERATOR<T>& DLIST_ITERATOR< T >::operator-- ( )
inline

Definition at line 47 of file iterators.h.

48  {
49  m_obj = m_obj->Prev(); return *this;
50  }
template<class T>
bool DLIST_ITERATOR< T >::operator== ( DLIST_ITERATOR< T >  other) const
inline

Definition at line 52 of file iterators.h.

References DLIST_ITERATOR< T >::m_obj.

53  {
54  return m_obj == other.m_obj;
55  }

Member Data Documentation

template<class T>
T DLIST_ITERATOR< T >::m_obj
private

Definition at line 34 of file iterators.h.

Referenced by DLIST_ITERATOR< T >::operator*(), and DLIST_ITERATOR< T >::operator==().


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