KiCad PCB EDA Suite
SHAPE_INDEX_LIST< T, >::iterator Class Reference

#include <shape_index_list.h>

Public Member Functions

 iterator ()
 
 iterator (SHAPE_VEC_ITER aCurrent)
 
 iterator (const iterator &aB)
 
operator * () const
 
void operator++ ()
 
iteratoroperator++ (int aDummy)
 
bool operator== (const iterator &aRhs) const
 
bool operator!= (const iterator &aRhs) const
 
const iteratoroperator= (const iterator &aRhs)
 

Private Attributes

SHAPE_VEC_ITER m_current
 

Detailed Description

template<class T, const SHAPE * = defaultShapeFunctor<T>>
class SHAPE_INDEX_LIST< T, >::iterator

Definition at line 66 of file shape_index_list.h.

Constructor & Destructor Documentation

◆ iterator() [1/3]

template<class T, const SHAPE * = defaultShapeFunctor<T>>
SHAPE_INDEX_LIST< T, >::iterator::iterator ( )
inline

Definition at line 69 of file shape_index_list.h.

70  {}

◆ iterator() [2/3]

template<class T, const SHAPE * = defaultShapeFunctor<T>>
SHAPE_INDEX_LIST< T, >::iterator::iterator ( SHAPE_VEC_ITER  aCurrent)
inline

Definition at line 72 of file shape_index_list.h.

72  :
73  m_current( aCurrent )
74  {}

◆ iterator() [3/3]

template<class T, const SHAPE * = defaultShapeFunctor<T>>
SHAPE_INDEX_LIST< T, >::iterator::iterator ( const iterator aB)
inline

Definition at line 76 of file shape_index_list.h.

76  :
77  m_current( aB.m_current )
78  {}

Member Function Documentation

◆ operator *()

template<class T, const SHAPE * = defaultShapeFunctor<T>>
T SHAPE_INDEX_LIST< T, >::iterator::operator * ( ) const
inline

Definition at line 80 of file shape_index_list.h.

81  {
82  return (*m_current).parent;
83  }

◆ operator!=()

template<class T, const SHAPE * = defaultShapeFunctor<T>>
bool SHAPE_INDEX_LIST< T, >::iterator::operator!= ( const iterator aRhs) const
inline

Definition at line 101 of file shape_index_list.h.

102  {
103  return m_current != aRhs.m_current;
104  }

References SHAPE_INDEX_LIST< T, >::iterator::m_current.

◆ operator++() [1/2]

template<class T, const SHAPE * = defaultShapeFunctor<T>>
void SHAPE_INDEX_LIST< T, >::iterator::operator++ ( )
inline

Definition at line 85 of file shape_index_list.h.

86  {
87  ++m_current;
88  }

References SHAPE_INDEX_LIST< T, >::iterator::m_current.

◆ operator++() [2/2]

template<class T, const SHAPE * = defaultShapeFunctor<T>>
iterator& SHAPE_INDEX_LIST< T, >::iterator::operator++ ( int  aDummy)
inline

Definition at line 90 of file shape_index_list.h.

91  {
92  ++m_current;
93  return *this;
94  }

References SHAPE_INDEX_LIST< T, >::iterator::m_current.

◆ operator=()

template<class T, const SHAPE * = defaultShapeFunctor<T>>
const iterator& SHAPE_INDEX_LIST< T, >::iterator::operator= ( const iterator aRhs)
inline

Definition at line 106 of file shape_index_list.h.

107  {
108  m_current = aRhs.m_current;
109  return *this;
110  }

References SHAPE_INDEX_LIST< T, >::iterator::m_current.

◆ operator==()

template<class T, const SHAPE * = defaultShapeFunctor<T>>
bool SHAPE_INDEX_LIST< T, >::iterator::operator== ( const iterator aRhs) const
inline

Definition at line 96 of file shape_index_list.h.

97  {
98  return m_current == aRhs.m_current;
99  }

References SHAPE_INDEX_LIST< T, >::iterator::m_current.

Member Data Documentation

◆ m_current


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