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

Go to the source code of this file.

Functions

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 39 of file connectivity_algo.cpp.

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

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