KiCad PCB EDA Suite
PCB_TRACK::cmp_tracks Struct Reference

#include <pcb_track.h>

Public Member Functions

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

Detailed Description

Definition at line 216 of file pcb_track.h.

Member Function Documentation

◆ operator()()

bool PCB_TRACK::cmp_tracks::operator() ( const PCB_TRACK aFirst,
const PCB_TRACK aSecond 
) const

Definition at line 968 of file pcb_track.cpp.

969 {
970  if( a->GetNetCode() != b->GetNetCode() )
971  return a->GetNetCode() < b->GetNetCode();
972 
973  if( a->GetLayer() != b->GetLayer() )
974  return a->GetLayer() < b->GetLayer();
975 
976  if( a->Type() != b->Type() )
977  return a->Type() < b->Type();
978 
979  if( a->m_Uuid != b->m_Uuid )
980  return a->m_Uuid < b->m_Uuid;
981 
982  return a < b;
983 }

References BOARD_ITEM::GetLayer(), BOARD_CONNECTED_ITEM::GetNetCode(), EDA_ITEM::m_Uuid, and EDA_ITEM::Type().


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