KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TMATCH::COMPONENT Class Reference

#include <topo_match.h>

Public Member Functions

 COMPONENT (const wxString &aRef, FOOTPRINT *aParentFp, std::optional< VECTOR2I > aRaOffset=std::optional< VECTOR2I >())
 
 ~COMPONENT ()
 
bool IsSameKind (const COMPONENT &b) const
 
void AddPin (PIN *p)
 
int GetPinCount () const
 
bool MatchesWith (COMPONENT *b)
 
std::vector< PIN * > & Pins ()
 
FOOTPRINTGetParent () const
 
bool HasRAOffset () const
 
const VECTOR2I GetRAOffset () const
 

Private Member Functions

void sortPinsByName ()
 

Private Attributes

std::optional< VECTOR2Im_raOffset
 
wxString m_reference
 
wxString m_prefix
 
FOOTPRINTm_parentFootprint = nullptr
 
std::vector< PIN * > m_pins
 

Friends

class PIN
 
class CONNECTION_GRAPH
 

Detailed Description

Definition at line 45 of file topo_match.h.

Constructor & Destructor Documentation

◆ COMPONENT()

COMPONENT::COMPONENT ( const wxString &  aRef,
FOOTPRINT aParentFp,
std::optional< VECTOR2I aRaOffset = std::optional<VECTOR2I>() 
)

Definition at line 457 of file topo_match.cpp.

References UTIL::GetRefDesPrefix(), and m_prefix.

◆ ~COMPONENT()

COMPONENT::~COMPONENT ( )

Definition at line 552 of file topo_match.cpp.

References m_pins.

Member Function Documentation

◆ AddPin()

void COMPONENT::AddPin ( PIN p)

Definition at line 468 of file topo_match.cpp.

References m_pins, and TMATCH::PIN::SetParent().

◆ GetParent()

FOOTPRINT * TMATCH::COMPONENT::GetParent ( ) const
inline

Definition at line 59 of file topo_match.h.

References m_parentFootprint.

Referenced by TMATCH::checkIfPadNetsMatch().

◆ GetPinCount()

int TMATCH::COMPONENT::GetPinCount ( ) const
inline

Definition at line 56 of file topo_match.h.

References m_pins.

Referenced by MatchesWith().

◆ GetRAOffset()

const VECTOR2I TMATCH::COMPONENT::GetRAOffset ( ) const
inline

Definition at line 62 of file topo_match.h.

References m_raOffset.

◆ HasRAOffset()

bool TMATCH::COMPONENT::HasRAOffset ( ) const
inline

Definition at line 61 of file topo_match.h.

References m_raOffset.

◆ IsSameKind()

bool COMPONENT::IsSameKind ( const COMPONENT b) const

Definition at line 463 of file topo_match.cpp.

References FOOTPRINT::GetFPID(), m_parentFootprint, and m_prefix.

Referenced by TMATCH::PIN::IsTopologicallySimilar().

◆ MatchesWith()

bool COMPONENT::MatchesWith ( COMPONENT b)

◆ Pins()

std::vector< PIN * > & TMATCH::COMPONENT::Pins ( )
inline

Definition at line 58 of file topo_match.h.

References m_pins.

Referenced by TMATCH::checkIfPadNetsMatch().

◆ sortPinsByName()

void COMPONENT::sortPinsByName ( )
private

Definition at line 239 of file topo_match.cpp.

References m_pins.

Friends And Related Function Documentation

◆ CONNECTION_GRAPH

friend class CONNECTION_GRAPH
friend

Definition at line 48 of file topo_match.h.

◆ PIN

friend class PIN
friend

Definition at line 47 of file topo_match.h.

Member Data Documentation

◆ m_parentFootprint

FOOTPRINT* TMATCH::COMPONENT::m_parentFootprint = nullptr
private

Definition at line 71 of file topo_match.h.

Referenced by GetParent(), IsSameKind(), and MatchesWith().

◆ m_pins

std::vector<PIN*> TMATCH::COMPONENT::m_pins
private

Definition at line 72 of file topo_match.h.

Referenced by AddPin(), GetPinCount(), MatchesWith(), Pins(), sortPinsByName(), and ~COMPONENT().

◆ m_prefix

wxString TMATCH::COMPONENT::m_prefix
private

Definition at line 70 of file topo_match.h.

Referenced by COMPONENT(), IsSameKind(), and MatchesWith().

◆ m_raOffset

std::optional<VECTOR2I> TMATCH::COMPONENT::m_raOffset
private

Definition at line 68 of file topo_match.h.

Referenced by GetRAOffset(), and HasRAOffset().

◆ m_reference

wxString TMATCH::COMPONENT::m_reference
private

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