63 return ( (hash<int>()( aP.
pos.
x )
64 ^ (hash<int>()( aP.
pos.
y ) << 1) ) >> 1 )
65 ^ (hash<int>()( aP.
net ) << 1);
115 if( !aAllowLockedSegs )
127 bool hasNonVirtualVia =
false;
131 if( item->Kind() ==
VIA_T )
133 via =
static_cast<const VIA*
>( item );
135 hasNonVirtualVia = !
via->IsVirtual();
146 if( !
via || hasNonVirtualVia )
149 assert ( seg1 && seg2 );
217 if( item->OfKind(
VIA_T ) )
218 return static_cast<VIA*
>( item );
Represent a contiguous set of PCB layers.
void Merge(const LAYER_RANGE &aOther)
bool Overlaps(const LAYER_RANGE &aOther) const
int Count(int aKindMask=-1) const
void Add(const LINE &aLine)
bool Contains(ITEM *aItem) const
std::vector< ENTRY > ENTRIES
const ENTRIES & CItems() const
Base class for PNS router board items.
A 2D point on a given set of layers and belonging to a certain net, that links together a number of b...
ITEM_SET m_linkedItems
locked (non-movable) flag
bool operator==(const JOINT &rhs) const
int LinkCount(int aMask=-1) const
const LINKED_ITEMS & LinkList() const
ITEM_SET::ENTRIES LINKED_ITEMS
Joints are hashed by their position, layers and net.
LINKED_ITEM * NextSegment(ITEM *aCurrent, bool aAllowLockedSegs=false) const
bool IsLineCorner(bool aAllowLockedSegs=false) const
Checks if a joint connects two segments of the same net, layer, and width.
void Lock(bool aLock=true)
JOINT(const VECTOR2I &aPos, const LAYER_RANGE &aLayers, int aNet=-1)
const HASH_TAG & Tag() const
trivial accessors
void Link(ITEM *aItem)
Unlink a given board item from the joint (upon its removal from a NODE)
bool IsNonFanoutVia() const
ITEM * Clone() const override
Return a deep copy of the item.
bool IsTraceWidthChange() const
Link the joint to a given board item (when it's added to the NODE).
const ITEM_SET & CLinks() const
HASH_TAG m_tag
< hash tag for unordered_multimap
bool Overlaps(const JOINT &rhs) const
bool IsStitchingVia() const
void Merge(const JOINT &aJoint)
bool Unlink(ITEM *aItem)
For trivial joints, return the segment adjacent to (aCurrent).
const VECTOR2I & Pos() const
virtual int Width() const
int Width() const override
Push and Shove diff pair dimensions (gap) settings dialog.
bool operator==(JOINT::HASH_TAG const &aP1, JOINT::HASH_TAG const &aP2)
std::size_t operator()(const JOINT::HASH_TAG &aP) const