KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FOOTPRINT_FILTER::ITERATOR Class Reference

Inner iterator class returned by begin() and end(). More...

#include <footprint_filter.h>

Inheritance diagram for FOOTPRINT_FILTER::ITERATOR:

Public Member Functions

 ITERATOR ()
 
 ITERATOR (const ITERATOR &aOther)
 
 ITERATOR (FOOTPRINT_FILTER &aFilter)
 

Private Member Functions

void increment ()
 
bool equal (const ITERATOR &aOther) const
 
FOOTPRINT_INFOdereference () const
 
bool FootprintFilterMatch (FOOTPRINT_INFO &aItem)
 Check if the stored component matches an item by footprint filter.
 
bool PinCountMatch (FOOTPRINT_INFO &aItem)
 Check if the stored component matches an item by pin count.
 

Private Attributes

size_t m_pos
 
FOOTPRINT_FILTERm_filter
 

Friends

class boost::iterator_core_access
 
class FOOTPRINT_FILTER
 

Detailed Description

Inner iterator class returned by begin() and end().

Definition at line 83 of file footprint_filter.h.

Constructor & Destructor Documentation

◆ ITERATOR() [1/3]

FOOTPRINT_FILTER::ITERATOR::ITERATOR ( )

Definition at line 28 of file footprint_filter.cpp.

◆ ITERATOR() [2/3]

FOOTPRINT_FILTER::ITERATOR::ITERATOR ( const ITERATOR aOther)

Definition at line 35 of file footprint_filter.cpp.

◆ ITERATOR() [3/3]

FOOTPRINT_FILTER::ITERATOR::ITERATOR ( FOOTPRINT_FILTER aFilter)

Definition at line 42 of file footprint_filter.cpp.

References increment().

Member Function Documentation

◆ dereference()

FOOTPRINT_INFO & FOOTPRINT_FILTER_IT::dereference ( ) const
private

Definition at line 119 of file footprint_filter.cpp.

References FOOTPRINT_LIST::GetCount(), and FOOTPRINT_FILTER::m_list.

◆ equal()

bool FOOTPRINT_FILTER_IT::equal ( const ITERATOR aOther) const
private

Definition at line 112 of file footprint_filter.cpp.

References m_filter, and m_pos.

◆ FootprintFilterMatch()

bool FOOTPRINT_FILTER_IT::FootprintFilterMatch ( FOOTPRINT_INFO aItem)
private

Check if the stored component matches an item by footprint filter.

Definition at line 128 of file footprint_filter.cpp.

References FOOTPRINT_INFO::GetFootprintName(), FOOTPRINT_INFO::GetLibNickname(), and name.

◆ increment()

◆ PinCountMatch()

bool FOOTPRINT_FILTER_IT::PinCountMatch ( FOOTPRINT_INFO aItem)
private

Check if the stored component matches an item by pin count.

Definition at line 154 of file footprint_filter.cpp.

References FOOTPRINT_INFO::GetUniquePadCount().

Friends And Related Function Documentation

◆ boost::iterator_core_access

friend class boost::iterator_core_access
friend

Definition at line 92 of file footprint_filter.h.

◆ FOOTPRINT_FILTER

friend class FOOTPRINT_FILTER
friend

Definition at line 93 of file footprint_filter.h.

Member Data Documentation

◆ m_filter

FOOTPRINT_FILTER* FOOTPRINT_FILTER::ITERATOR::m_filter
private

Definition at line 100 of file footprint_filter.h.

Referenced by equal().

◆ m_pos

size_t FOOTPRINT_FILTER::ITERATOR::m_pos
private

Definition at line 99 of file footprint_filter.h.

Referenced by FOOTPRINT_FILTER::end(), and equal().


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