KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PIN_NUMBERS Class Reference

#include <pin_numbers.h>

Classes

struct  less
 

Public Types

typedef container_type::value_type value_type
 
typedef container_type::iterator iterator
 
typedef container_type::const_iterator const_iterator
 

Public Member Functions

wxString GetSummary () const
 
wxString GetDuplicates () const
 Gets a formatted string of all the pins that have duplicate numbers.
 
void insert (value_type const &v)
 
container_type::size_type size () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 

Static Public Member Functions

static int Compare (const wxString &lhs, const wxString &rhs)
 

Private Types

typedef std::set< wxString, lesscontainer_type
 

Static Private Member Functions

static wxString getNextSymbol (const wxString &str, wxString::size_type &cursor)
 

Private Attributes

container_type pins
 
std::set< wxString > duplicate_pins
 

Detailed Description

Definition at line 32 of file pin_numbers.h.

Member Typedef Documentation

◆ const_iterator

typedef container_type::const_iterator PIN_NUMBERS::const_iterator

Definition at line 61 of file pin_numbers.h.

◆ container_type

typedef std::set<wxString, less> PIN_NUMBERS::container_type
private

Definition at line 54 of file pin_numbers.h.

◆ iterator

typedef container_type::iterator PIN_NUMBERS::iterator

Definition at line 60 of file pin_numbers.h.

◆ value_type

typedef container_type::value_type PIN_NUMBERS::value_type

Definition at line 59 of file pin_numbers.h.

Member Function Documentation

◆ begin() [1/2]

iterator PIN_NUMBERS::begin ( )
inline

Definition at line 77 of file pin_numbers.h.

References pins.

Referenced by getNextSymbol(), and GetSummary().

◆ begin() [2/2]

const_iterator PIN_NUMBERS::begin ( ) const
inline

Definition at line 79 of file pin_numbers.h.

References pins.

◆ Compare()

int PIN_NUMBERS::Compare ( const wxString &  lhs,
const wxString &  rhs 
)
static

◆ end() [1/2]

iterator PIN_NUMBERS::end ( )
inline

Definition at line 78 of file pin_numbers.h.

References pins.

Referenced by GetSummary().

◆ end() [2/2]

const_iterator PIN_NUMBERS::end ( ) const
inline

Definition at line 80 of file pin_numbers.h.

References pins.

◆ GetDuplicates()

wxString PIN_NUMBERS::GetDuplicates ( ) const

Gets a formatted string of all the pins that have duplicate numbers.

Returns

Definition at line 110 of file pin_numbers.cpp.

References _, and duplicate_pins.

Referenced by DIALOG_LIB_EDIT_PIN_TABLE::updateSummary().

◆ getNextSymbol()

wxString PIN_NUMBERS::getNextSymbol ( const wxString &  str,
wxString::size_type &  cursor 
)
staticprivate

Definition at line 30 of file pin_numbers.cpp.

References begin(), and cursor.

Referenced by Compare().

◆ GetSummary()

wxString PIN_NUMBERS::GetSummary ( ) const

Definition at line 70 of file pin_numbers.cpp.

References begin(), Compare(), and end().

Referenced by DIALOG_LIB_EDIT_PIN_TABLE::updateSummary().

◆ insert()

void PIN_NUMBERS::insert ( value_type const &  v)
inline

Definition at line 63 of file pin_numbers.h.

References duplicate_pins, and pins.

Referenced by DIALOG_LIB_EDIT_PIN_TABLE::updateSummary().

◆ size()

container_type::size_type PIN_NUMBERS::size ( ) const
inline

Definition at line 75 of file pin_numbers.h.

References pins.

Member Data Documentation

◆ duplicate_pins

std::set<wxString> PIN_NUMBERS::duplicate_pins
private

Definition at line 84 of file pin_numbers.h.

Referenced by GetDuplicates(), and insert().

◆ pins

container_type PIN_NUMBERS::pins
private

Definition at line 83 of file pin_numbers.h.

Referenced by begin(), end(), insert(), and size().


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