| 
    KiCad PCB EDA Suite
    
   | 
 
Simple class that sequentially provides numbers from an ARRAY_OPTIONS object, making sure that they do not conflict with numbers already existing in a FOOTPRINT. More...
#include <array_pad_number_provider.h>
Public Member Functions | |
| ARRAY_PAD_NUMBER_PROVIDER (const std::set< wxString > &aExistingPadNumbers, const ARRAY_OPTIONS &aArrayOpts) | |
| wxString | GetNextPadNumber () | 
| Get the next available pad name.   | |
Private Member Functions | |
| wxString | getNextNumber (int &aIndex, const std::set< wxString > &aExisting) | 
| Get the next number from a given index/list combo.   | |
Private Attributes | |
| const ARRAY_OPTIONS & | m_arrayOpts | 
| std::set< wxString > | m_existing_pad_numbers | 
| int | m_current_pad_index | 
Simple class that sequentially provides numbers from an ARRAY_OPTIONS object, making sure that they do not conflict with numbers already existing in a FOOTPRINT.
Definition at line 36 of file array_pad_number_provider.h.
| ARRAY_PAD_NUMBER_PROVIDER::ARRAY_PAD_NUMBER_PROVIDER | ( | const std::set< wxString > & | aExistingPadNumbers, | 
| const ARRAY_OPTIONS & | aArrayOpts ) | 
| aFootprint | the footprint to gather existing numbers from (nullptr for no footprint) | 
| aArrayOpts | the array options that provide the candidate numbers | 
Definition at line 29 of file array_pad_number_provider.cpp.
References ARRAY_OPTIONS::GetNumberingStartIsSpecified(), m_arrayOpts, and m_current_pad_index.
      
  | 
  private | 
Get the next number from a given index/list combo.
| aIndex | index to start at, will be updated | 
| aExisting | the set of existing numbers to skip | 
Definition at line 55 of file array_pad_number_provider.cpp.
References m_arrayOpts.
Referenced by GetNextPadNumber().
| wxString ARRAY_PAD_NUMBER_PROVIDER::GetNextPadNumber | ( | ) | 
Get the next available pad name.
Definition at line 49 of file array_pad_number_provider.cpp.
References getNextNumber(), m_current_pad_index, and m_existing_pad_numbers.
Referenced by CheckPadNumberProvider(), and ARRAY_TOOL::onDialogClosed().
      
  | 
  private | 
Definition at line 59 of file array_pad_number_provider.h.
Referenced by ARRAY_PAD_NUMBER_PROVIDER(), and getNextNumber().
      
  | 
  private | 
Definition at line 61 of file array_pad_number_provider.h.
Referenced by ARRAY_PAD_NUMBER_PROVIDER(), and GetNextPadNumber().
      
  | 
  private | 
Definition at line 60 of file array_pad_number_provider.h.
Referenced by GetNextPadNumber().