20#ifndef LIBREPCB_CORE_COMPONENTSIGNALINSTANCE_H
21#define LIBREPCB_CORE_COMPONENTSIGNALINSTANCE_H
26#include "../../types/circuitidentifier.h"
37class ComponentInstance;
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition: circuit.h:70
The ComponentInstance class.
Definition: componentinstance.h:54
The ComponentSignal class represents one signal of a component.
Definition: componentsignal.h:45
The ComponentSignalInstance class.
Definition: componentsignalinstance.h:49
void netSignalChanged(NetSignal *from, NetSignal *to)
QStringList mPadNames
Definition: componentsignalinstance.h:135
const QStringList & getPadNames() const noexcept
Definition: componentsignalinstance.h:73
ComponentInstance & getComponentInstance() const noexcept
Definition: componentsignalinstance.h:68
bool arePinsOrPadsUsed() const noexcept
Definition: componentsignalinstance.cpp:90
void padNamesChanged(const QStringList &names)
const ComponentSignal & getCompSignal() const noexcept
Definition: componentsignalinstance.h:64
Circuit & mCircuit
Definition: componentsignalinstance.h:126
void registerSymbolPin(SI_SymbolPin &pin)
Definition: componentsignalinstance.cpp:167
int getRegisteredElementsCount() const noexcept
Definition: componentsignalinstance.cpp:83
ComponentInstance & mComponentInstance
Definition: componentsignalinstance.h:127
NetSignal * mNetSignal
Definition: componentsignalinstance.h:132
QList< SI_SymbolPin * > mRegisteredSymbolPins
Definition: componentsignalinstance.h:138
bool isUsed() const noexcept
Definition: componentsignalinstance.h:81
bool isNetSignalNameForced() const noexcept
Definition: componentsignalinstance.cpp:73
NetSignal * getNetSignal() const noexcept
Definition: componentsignalinstance.h:67
ComponentSignalInstance()=delete
const ComponentSignal & mComponentSignal
Definition: componentsignalinstance.h:128
~ComponentSignalInstance() noexcept
Definition: componentsignalinstance.cpp:63
const QList< BI_FootprintPad * > & getRegisteredFootprintPads() const noexcept
Definition: componentsignalinstance.h:77
void setNetSignal(NetSignal *netsignal)
(Re-)Connect/Disconnect this component signal to/from a circuit's netsignal
Definition: componentsignalinstance.cpp:108
QString getForcedNetSignalName() const noexcept
Definition: componentsignalinstance.cpp:77
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: componentsignalinstance.cpp:199
void unregisterSymbolPin(SI_SymbolPin &pin)
Definition: componentsignalinstance.cpp:175
void removeFromCircuit()
Definition: componentsignalinstance.cpp:151
Circuit & getCircuit() const noexcept
Definition: componentsignalinstance.h:63
void unregisterFootprintPad(BI_FootprintPad &pad)
Definition: componentsignalinstance.cpp:191
void registerFootprintPad(BI_FootprintPad &pad)
Definition: componentsignalinstance.cpp:182
QList< BI_FootprintPad * > mRegisteredFootprintPads
Definition: componentsignalinstance.h:139
bool mIsAddedToCircuit
Definition: componentsignalinstance.h:129
void addToCircuit()
Definition: componentsignalinstance.cpp:141
const QList< SI_SymbolPin * > & getRegisteredSymbolPins() const noexcept
Definition: componentsignalinstance.h:74
ComponentSignalInstance(const ComponentSignalInstance &other)=delete
void updatePadNames() noexcept
Definition: componentsignalinstance.cpp:210
The NetSignal class.
Definition: netsignal.h:50
The SExpression class.
Definition: sexpression.h:69
The SI_SymbolPin class.
Definition: si_symbolpin.h:52
Definition: occmodel.cpp:77