KiCad PCB EDA Suite
FOOTPRINT::cmp_pads Struct Reference

#include <footprint.h>

Public Member Functions

bool operator() (const PAD *aFirst, const PAD *aSecond) const

Detailed Description

Definition at line 721 of file footprint.h.

Member Function Documentation

◆ operator()()

bool FOOTPRINT::cmp_pads::operator() ( const PAD aFirst,
const PAD aSecond 
) const

Definition at line 2196 of file footprint.cpp.

2197 {
2198  if( aFirst->GetNumber() != aSecond->GetNumber() )
2199  return StrNumCmp( aFirst->GetNumber(), aSecond->GetNumber() ) < 0;
2201  if( aFirst->m_Uuid != aSecond->m_Uuid ) // shopuld be always the case foer valid boards
2202  return aFirst->m_Uuid < aSecond->m_Uuid;
2204  return aFirst < aSecond;
2205 }
const wxString & GetNumber() const
Definition: pad.h:129
const KIID m_Uuid
Definition: eda_item.h:474
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.

References PAD::GetNumber(), EDA_ITEM::m_Uuid, and StrNumCmp().

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