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_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_LIST
 
class  CN_PAD_LIST
 
class  CN_TRACK_LIST
 
class  CN_VIA_LIST
 
class  CN_ZONE
 
class  CN_ZONE_LIST
 
class  CN_CONNECTIVITY_ALGO
 
class  CN_CONNECTIVITY_ALGO::ITEM_MAP_ENTRY
 

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 155 of file connectivity_algo.h.

typedef std::vector<CN_ANCHOR_PTR> CN_ANCHORS

Definition at line 156 of file connectivity_algo.h.

typedef std::shared_ptr<CN_CLUSTER> CN_CLUSTER_PTR

Definition at line 261 of file connectivity_algo.h.

typedef std::shared_ptr<CN_ITEM> CN_ITEM_PTR

Definition at line 403 of file connectivity_algo.h.

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 }