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 217 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 983 of file pcb_track.cpp.

984 {
985  if( a->GetNetCode() != b->GetNetCode() )
986  return a->GetNetCode() < b->GetNetCode();
987 
988  if( a->GetLayer() != b->GetLayer() )
989  return a->GetLayer() < b->GetLayer();
990 
991  if( a->Type() != b->Type() )
992  return a->Type() < b->Type();
993 
994  if( a->m_Uuid != b->m_Uuid )
995  return a->m_Uuid < b->m_Uuid;
996 
997  return a < b;
998 }

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: