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 720 of file footprint.h.

Member Function Documentation

◆ operator()()

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

Definition at line 2178 of file footprint.cpp.

2179 {
2180  if( aFirst->GetNumber() != aSecond->GetNumber() )
2181  return StrNumCmp( aFirst->GetNumber(), aSecond->GetNumber() ) < 0;
2182 
2183  if( aFirst->m_Uuid != aSecond->m_Uuid ) // shopuld be always the case foer valid boards
2184  return aFirst->m_Uuid < aSecond->m_Uuid;
2185 
2186  return aFirst < aSecond;
2187 }
const wxString & GetNumber() const
Definition: pad.h:129
const KIID m_Uuid
Definition: eda_item.h:475
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: