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

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

Definition at line 66 of file shape_index_list.h.

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

Definition at line 70 of file shape_index_list.h.

70  :
71  m_current( aB.m_current )
72  {}

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

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

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

Definition at line 74 of file shape_index_list.h.

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

Definition at line 79 of file shape_index_list.h.

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

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

Definition at line 84 of file shape_index_list.h.

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

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

Definition at line 100 of file shape_index_list.h.

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

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

Definition at line 90 of file shape_index_list.h.

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

91  {
92  return m_current == aRhs.m_current;
93  }

Member Data Documentation


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