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

71 {}

◆ iterator() [2/3]

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

Definition at line 73 of file shape_index_list.h.

73 :
74 m_current( aCurrent )
75 {}

◆ iterator() [3/3]

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

Definition at line 77 of file shape_index_list.h.

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

Member Function Documentation

◆ operator!=()

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

Definition at line 102 of file shape_index_list.h.

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

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

◆ operator*()

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

Definition at line 81 of file shape_index_list.h.

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

◆ operator++() [1/2]

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

Definition at line 86 of file shape_index_list.h.

87 {
88 ++m_current;
89 }

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

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

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

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

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

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

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

Member Data Documentation

◆ m_current


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