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 61 of file pns_item.h.

Constructor & Destructor Documentation

◆ OWNABLE_ITEM()

PNS::OWNABLE_ITEM::OWNABLE_ITEM ( )
inline

Definition at line 64 of file pns_item.h.

Member Function Documentation

◆ BelongsTo()

bool PNS::OWNABLE_ITEM::BelongsTo ( const ITEM_OWNER aNode) const
inline

◆ 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 71 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(), PNS::NODE::Remove(), and PNS::LINE_PLACER::rhShoveOnly().

◆ SetOwner()

Member Data Documentation

◆ m_owner

const ITEM_OWNER* PNS::OWNABLE_ITEM::m_owner
protected

Definition at line 87 of file pns_item.h.

Referenced by BelongsTo(), PNS::ITEM::ITEM(), PNS::LINE::operator=(), Owner(), and SetOwner().


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