24#ifndef PCBNEW_ROUTER_PNS_LINK_HOLDER_H_
25#define PCBNEW_ROUTER_PNS_LINK_HOLDER_H_
36 typedef std::vector<LINKED_ITEM*>
LINKS;
85 wxLogTrace( wxT(
"PNS" ), wxT(
"item %p: no links" ),
this );
89 wxLogTrace( wxT(
"PNS" ), wxT(
"item %p: %d links" ),
this, (
int)
m_links.size() );
91 for(
int i = 0; i < (int)
m_links.size(); i++ )
92 wxLogTrace( wxT(
"PNS" ), wxT(
"item %d: %p\n" ), i,
m_links[i] );
Base class for PNS router board items.
void copyLinks(const LINK_HOLDER *aParent)
< Copy m_links from the line aParent.
void Link(LINKED_ITEM *aLink)
Return the list of links from the owning node that constitute this line (or NULL if the line is not l...
bool IsLinked() const
Check if the segment aLink is a part of the line.
bool ContainsLink(const LINKED_ITEM *aItem) const
LINKED_ITEM * GetLink(int aIndex) const
Erase the linking information. Used to detach the line from the owning node.
const LINKS & Links() const
LINK_HOLDER(PnsKind aKind)
Add a reference to an item registered in a #NODE that is a part of this line.
std::vector< LINKED_ITEM * > LINKS
virtual void ClearLinks()
Return the number of segments that were assembled together to form this line.
Push and Shove diff pair dimensions (gap) settings dialog.
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.