KiCad PCB EDA Suite
connectivity_algo.h File Reference
#include <class_board.h>
#include <class_pad.h>
#include <class_module.h>
#include <class_zone.h>
#include <geometry/shape_poly_set.h>
#include <geometry/poly_grid_partition.h>
#include <memory>
#include <algorithm>
#include <functional>
#include <vector>
#include <deque>
#include <intrusive_list.h>
#include <connectivity_rtree.h>
#include <connectivity_data.h>

Go to the source code of this file.

Classes

class  CN_ANCHOR
 
class  CN_EDGE
 
class  CN_CLUSTER
 
class  CN_ITEM
 
class  CN_ZONE
 
class  CN_LIST
 
class  CN_CONNECTIVITY_ALGO
 
class  CN_CONNECTIVITY_ALGO::ITEM_MAP_ENTRY
 
class  CN_VISITOR
 Struct CN_VISTOR. More...
 

Typedefs

typedef std::shared_ptr< CN_ANCHORCN_ANCHOR_PTR
 
typedef std::vector< CN_ANCHOR_PTRCN_ANCHORS
 
typedef std::shared_ptr< CN_CLUSTERCN_CLUSTER_PTR
 
typedef std::shared_ptr< CN_ITEMCN_ITEM_PTR
 

Functions

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

Typedef Documentation

typedef std::shared_ptr<CN_ANCHOR> CN_ANCHOR_PTR

Definition at line 156 of file connectivity_algo.h.

typedef std::vector<CN_ANCHOR_PTR> CN_ANCHORS

Definition at line 157 of file connectivity_algo.h.

typedef std::shared_ptr<CN_CLUSTER> CN_CLUSTER_PTR

Definition at line 262 of file connectivity_algo.h.

typedef std::shared_ptr<CN_ITEM> CN_ITEM_PTR

Definition at line 453 of file connectivity_algo.h.

Function Documentation

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

Definition at line 42 of file connectivity_algo.cpp.

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

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