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 62 of file shape_index_list.h.

Constructor & Destructor Documentation

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

Definition at line 65 of file shape_index_list.h.

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

Definition at line 68 of file shape_index_list.h.

68  :
69  m_current( aCurrent )
70  {}
template<class T, const SHAPE * = defaultShapeFunctor<T>>
SHAPE_INDEX_LIST< T, >::iterator::iterator ( const iterator aB)
inline

Definition at line 72 of file shape_index_list.h.

72  :
73  m_current( aB.m_current )
74  {}

Member Function Documentation

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

Definition at line 97 of file shape_index_list.h.

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

98  {
99  return m_current != aRhs.m_current;
100  }
template<class T, const SHAPE * = defaultShapeFunctor<T>>
T SHAPE_INDEX_LIST< T, >::iterator::operator* ( ) const
inline

Definition at line 76 of file shape_index_list.h.

77  {
78  return (*m_current).parent;
79  }
template<class T, const SHAPE * = defaultShapeFunctor<T>>
void SHAPE_INDEX_LIST< T, >::iterator::operator++ ( )
inline

Definition at line 81 of file shape_index_list.h.

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

82  {
83  ++m_current;
84  }
template<class T, const SHAPE * = defaultShapeFunctor<T>>
iterator& SHAPE_INDEX_LIST< T, >::iterator::operator++ ( int  aDummy)
inline

Definition at line 86 of file shape_index_list.h.

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

87  {
88  ++m_current;
89  return *this;
90  }
template<class T, const SHAPE * = defaultShapeFunctor<T>>
const iterator& SHAPE_INDEX_LIST< T, >::iterator::operator= ( const iterator aRhs)
inline

Definition at line 102 of file shape_index_list.h.

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

103  {
104  m_current = aRhs.m_current;
105  return *this;
106  }
template<class T, const SHAPE * = defaultShapeFunctor<T>>
bool SHAPE_INDEX_LIST< T, >::iterator::operator== ( const iterator aRhs) const
inline

Definition at line 92 of file shape_index_list.h.

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

93  {
94  return m_current == aRhs.m_current;
95  }

Member Data Documentation


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