KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SHAPE_INDEX_LIST< T, >::query_iterator Class Reference

#include <shape_index_list.h>

Public Member Functions

 query_iterator ()
 
 query_iterator (SHAPE_VEC_ITER aCurrent, SHAPE_VEC_ITER aEnd, SHAPE *aShape, int aMinDistance, bool aExact)
 
 query_iterator (const query_iterator &aB)
 
T operator* () const
 
query_iteratoroperator++ ()
 
query_iteratoroperator++ (int aDummy)
 
bool operator== (const query_iterator &aRhs) const
 
bool operator!= (const query_iterator &aRhs) const
 
const query_iteratoroperator= (const query_iterator &aRhs)
 

Private Member Functions

void next ()
 

Private Attributes

SHAPE_VEC_ITER m_end
 
SHAPE_VEC_ITER m_current
 
BOX2I m_refBBox
 
bool m_exact
 
SHAPEm_shape
 
int m_minDistance
 

Detailed Description

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

Definition at line 118 of file shape_index_list.h.

Constructor & Destructor Documentation

◆ query_iterator() [1/3]

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

◆ query_iterator() [2/3]

template<class T, const SHAPE * = defaultShapeFunctor<T>>
SHAPE_INDEX_LIST< T, >::query_iterator::query_iterator ( SHAPE_VEC_ITER aCurrent,
SHAPE_VEC_ITER aEnd,
SHAPE * aShape,
int aMinDistance,
bool aExact )
inline

Definition at line 125 of file shape_index_list.h.

References SHAPE::BBox(), m_current, m_end, m_exact, m_minDistance, m_refBBox, m_shape, and next().

◆ query_iterator() [3/3]

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

Definition at line 140 of file shape_index_list.h.

References m_current, m_end, m_exact, m_minDistance, m_refBBox, m_shape, and query_iterator().

Member Function Documentation

◆ next()

template<class T, const SHAPE * = defaultShapeFunctor<T>>
void SHAPE_INDEX_LIST< T, >::query_iterator::next ( )
inlineprivate

Definition at line 191 of file shape_index_list.h.

References m_current, m_end, m_exact, m_minDistance, m_refBBox, and m_shape.

Referenced by operator++(), operator++(), and query_iterator().

◆ operator!=()

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

Definition at line 174 of file shape_index_list.h.

References m_current, and query_iterator().

◆ operator*()

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

Definition at line 150 of file shape_index_list.h.

References T.

◆ operator++() [1/2]

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

Definition at line 155 of file shape_index_list.h.

References m_current, next(), and query_iterator().

◆ operator++() [2/2]

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

Definition at line 162 of file shape_index_list.h.

References m_current, next(), and query_iterator().

◆ operator=()

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

Definition at line 179 of file shape_index_list.h.

References m_current, m_end, m_exact, m_minDistance, m_refBBox, m_shape, and query_iterator().

◆ operator==()

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

Definition at line 169 of file shape_index_list.h.

References m_current, and query_iterator().

Member Data Documentation

◆ m_current

template<class T, const SHAPE * = defaultShapeFunctor<T>>
SHAPE_VEC_ITER SHAPE_INDEX_LIST< T, >::query_iterator::m_current
private

◆ m_end

template<class T, const SHAPE * = defaultShapeFunctor<T>>
SHAPE_VEC_ITER SHAPE_INDEX_LIST< T, >::query_iterator::m_end
private

Definition at line 205 of file shape_index_list.h.

Referenced by next(), operator=(), query_iterator(), and query_iterator().

◆ m_exact

template<class T, const SHAPE * = defaultShapeFunctor<T>>
bool SHAPE_INDEX_LIST< T, >::query_iterator::m_exact
private

Definition at line 208 of file shape_index_list.h.

Referenced by next(), operator=(), query_iterator(), and query_iterator().

◆ m_minDistance

template<class T, const SHAPE * = defaultShapeFunctor<T>>
int SHAPE_INDEX_LIST< T, >::query_iterator::m_minDistance
private

Definition at line 210 of file shape_index_list.h.

Referenced by next(), operator=(), query_iterator(), and query_iterator().

◆ m_refBBox

template<class T, const SHAPE * = defaultShapeFunctor<T>>
BOX2I SHAPE_INDEX_LIST< T, >::query_iterator::m_refBBox
private

Definition at line 207 of file shape_index_list.h.

Referenced by next(), operator=(), query_iterator(), and query_iterator().

◆ m_shape

template<class T, const SHAPE * = defaultShapeFunctor<T>>
SHAPE* SHAPE_INDEX_LIST< T, >::query_iterator::m_shape
private

Definition at line 209 of file shape_index_list.h.

Referenced by next(), operator=(), query_iterator(), and query_iterator().


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