20#ifndef LIBREPCB_CORE_NETSIGNAL_H
21#define LIBREPCB_CORE_NETSIGNAL_H
26#include "../../types/circuitidentifier.h"
27#include "../../types/uuid.h"
39class ComponentSignalInstance;
82 bool isUsed() const noexcept;
111 return (
this == &rhs);
114 return (
this != &rhs);
The BI_NetSegment class.
Definition bi_netsegment.h:52
The BI_Plane class.
Definition bi_plane.h:52
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition circuit.h:70
The ComponentSignalInstance class.
Definition componentsignalinstance.h:49
The NetClass class.
Definition netclass.h:46
The NetSignal class.
Definition netsignal.h:50
bool mHasAutoName
Definition netsignal.h:129
bool isAddedToCircuit() const noexcept
Definition netsignal.h:84
NetClass & getNetClass() const noexcept
Definition netsignal.h:65
Circuit & mCircuit
Definition netsignal.h:123
void registerComponentSignal(ComponentSignalInstance &signal)
Definition netsignal.cpp:128
int getRegisteredElementsCount() const noexcept
Definition netsignal.cpp:66
NetClass & mNetClass
Definition netsignal.h:130
const QList< BI_Plane * > & getBoardPlanes() const noexcept
Definition netsignal.h:78
Uuid mUuid
Definition netsignal.h:127
bool isUsed() const noexcept
Definition netsignal.cpp:75
void unregisterBoardNetSegment(BI_NetSegment &netsegment)
Definition netsignal.cpp:174
void nameChanged(const CircuitIdentifier &newName)
const QList< ComponentSignalInstance * > & getComponentSignals() const noexcept
Definition netsignal.h:69
const CircuitIdentifier & getName() const noexcept
Definition netsignal.h:63
void setName(const CircuitIdentifier &name, bool isAutoName) noexcept
Definition netsignal.cpp:92
void registerSchematicNetSegment(SI_NetSegment &netsegment)
Definition netsignal.cpp:144
QList< BI_Plane * > mRegisteredBoardPlanes
Definition netsignal.h:136
bool isNameForced() const noexcept
Definition netsignal.cpp:79
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition netsignal.cpp:197
void unregisterSchematicNetSegment(SI_NetSegment &netsegment)
Definition netsignal.cpp:157
bool hasAutoName() const noexcept
Definition netsignal.h:64
~NetSignal() noexcept
Definition netsignal.cpp:57
QList< BI_NetSegment * > mRegisteredBoardNetSegments
Definition netsignal.h:135
const Uuid & getUuid() const noexcept
Definition netsignal.h:62
void removeFromCircuit()
Definition netsignal.cpp:114
QList< SI_NetSegment * > mRegisteredSchematicNetSegments
Definition netsignal.h:134
Circuit & getCircuit() const noexcept
Definition netsignal.h:68
NetSignal(const NetSignal &other)=delete
void registerBoardPlane(BI_Plane &plane)
Definition netsignal.cpp:182
CircuitIdentifier mName
Definition netsignal.h:128
void unregisterBoardPlane(BI_Plane &plane)
Definition netsignal.cpp:190
const QList< SI_NetSegment * > & getSchematicNetSegments() const noexcept
Definition netsignal.h:72
bool operator!=(const NetSignal &rhs) const noexcept
Definition netsignal.h:113
bool operator==(const NetSignal &rhs) const noexcept
Definition netsignal.h:110
bool mIsAddedToCircuit
Definition netsignal.h:124
void registerBoardNetSegment(BI_NetSegment &netsegment)
Definition netsignal.cpp:165
void addToCircuit()
Definition netsignal.cpp:106
NetSignal & operator=(const NetSignal &rhs)=delete
const QList< BI_NetSegment * > & getBoardNetSegments() const noexcept
Definition netsignal.h:75
QList< ComponentSignalInstance * > mRegisteredComponentSignals
Definition netsignal.h:133
void unregisterComponentSignal(ComponentSignalInstance &signal)
Definition netsignal.cpp:136
The SExpression class.
Definition sexpression.h:69
The SI_NetSegment class.
Definition si_netsegment.h:53
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
Definition occmodel.cpp:76
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition circuitidentifier.h:95