KiCad PCB EDA Suite
connectivity_algo.cpp File Reference
#include <connectivity_algo.h>
#include <widgets/progress_reporter.h>
#include <thread>
#include <mutex>

Go to the source code of this file.


bool operator< (const CN_ANCHOR_PTR &a, const CN_ANCHOR_PTR &b)

Function Documentation

bool operator< ( const CN_ANCHOR_PTR a,
const CN_ANCHOR_PTR b 

Definition at line 41 of file connectivity_algo.cpp.

Referenced by SCH_ITEM::GetNetListItem(), json11::JsonArray::operator[](), and CN_CONNECTIVITY_ALGO::PadList().

42 {
43  if( a->Pos().x == b->Pos().x )
44  return a->Pos().y < b->Pos().y;
45  else
46  return a->Pos().x < b->Pos().x;
47 }