KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::OWNABLE_ITEM Class Reference

#include <pns_item.h>

Inheritance diagram for PNS::OWNABLE_ITEM:
PNS::ITEM PNS::HOLE PNS::JOINT PNS::LINKED_ITEM PNS::LINK_HOLDER PNS::SOLID PNS::ARC PNS::SEGMENT PNS::VIA PNS::DIFF_PAIR PNS::LINE PNS::VVIA

Public Member Functions

 OWNABLE_ITEM ()
 
const ITEM_OWNEROwner () const
 Return the owner of this item, or NULL if there's none.
 
void SetOwner (const ITEM_OWNER *aOwner)
 Set the node that owns this item.
 
bool BelongsTo (const ITEM_OWNER *aNode) const
 

Protected Attributes

const ITEM_OWNERm_owner
 

Detailed Description

Definition at line 62 of file pns_item.h.

Constructor & Destructor Documentation

◆ OWNABLE_ITEM()

PNS::OWNABLE_ITEM::OWNABLE_ITEM ( )
inline

Definition at line 65 of file pns_item.h.

References m_owner.

Member Function Documentation

◆ BelongsTo()

bool PNS::OWNABLE_ITEM::BelongsTo ( const ITEM_OWNER * aNode) const
inline
Returns
true if the item is owned by the node aNode.

Definition at line 82 of file pns_item.h.

References m_owner.

Referenced by PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::NODE::doRemove(), PNS::LINE::operator=(), PNS::NODE::Remove(), and PNS::NODE::~NODE().

◆ Owner()

const ITEM_OWNER * PNS::OWNABLE_ITEM::Owner ( ) const
inline

Return the owner of this item, or NULL if there's none.

Definition at line 72 of file pns_item.h.

References m_owner.

Referenced by PNS_PCBNEW_RULE_RESOLVER::Clearance(), PNS_KICAD_IFACE_BASE::inheritTrackWidth(), PNS::LINE_PLACER::Move(), PNS::ITEM::OwningNode(), and PNS::NODE::Remove().

◆ SetOwner()

void PNS::OWNABLE_ITEM::SetOwner ( const ITEM_OWNER * aOwner)
inline

Member Data Documentation

◆ m_owner

const ITEM_OWNER* PNS::OWNABLE_ITEM::m_owner
protected

The documentation for this class was generated from the following file: