LibrePCB Developers Documentation
NetSignal Class Referencefinal

The NetSignal class. More...

#include <netsignal.h>

Inherits QObject.

+ Collaboration diagram for NetSignal:

Signals

void nameChanged (const CircuitIdentifier &newName)
 

Public Member Functions

 NetSignal ()=delete
 
 NetSignal (const NetSignal &other)=delete
 
 NetSignal (Circuit &circuit, const Uuid &uuid, NetClass &netclass, const CircuitIdentifier &name, bool autoName)
 
 ~NetSignal () noexcept
 
const UuidgetUuid () const noexcept
 
const CircuitIdentifiergetName () const noexcept
 
bool hasAutoName () const noexcept
 
NetClassgetNetClass () const noexcept
 
CircuitgetCircuit () const noexcept
 
const QList< ComponentSignalInstance * > & getComponentSignals () const noexcept
 
const QList< SI_NetSegment * > & getSchematicNetSegments () const noexcept
 
const QList< BI_NetSegment * > & getBoardNetSegments () const noexcept
 
const QList< BI_Plane * > & getBoardPlanes () const noexcept
 
int getRegisteredElementsCount () const noexcept
 
bool isUsed () const noexcept
 
bool isNameForced () const noexcept
 
bool isAddedToCircuit () const noexcept
 
void setName (const CircuitIdentifier &name, bool isAutoName) noexcept
 
void addToCircuit ()
 
void removeFromCircuit ()
 
void registerComponentSignal (ComponentSignalInstance &signal)
 
void unregisterComponentSignal (ComponentSignalInstance &signal)
 
void registerSchematicNetSegment (SI_NetSegment &netsegment)
 
void unregisterSchematicNetSegment (SI_NetSegment &netsegment)
 
void registerBoardNetSegment (BI_NetSegment &netsegment)
 
void unregisterBoardNetSegment (BI_NetSegment &netsegment)
 
void registerBoardPlane (BI_Plane &plane)
 
void unregisterBoardPlane (BI_Plane &plane)
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
NetSignaloperator= (const NetSignal &rhs)=delete
 
bool operator== (const NetSignal &rhs) noexcept
 
bool operator!= (const NetSignal &rhs) noexcept
 

Private Attributes

CircuitmCircuit
 
bool mIsAddedToCircuit
 
Uuid mUuid
 
CircuitIdentifier mName
 
bool mHasAutoName
 
NetClassmNetClass
 
QList< ComponentSignalInstance * > mRegisteredComponentSignals
 
QList< SI_NetSegment * > mRegisteredSchematicNetSegments
 
QList< BI_NetSegment * > mRegisteredBoardNetSegments
 
QList< BI_Plane * > mRegisteredBoardPlanes
 

Detailed Description

The NetSignal class.

Constructor & Destructor Documentation

◆ NetSignal() [1/3]

NetSignal ( )
delete

◆ NetSignal() [2/3]

NetSignal ( const NetSignal other)
delete

◆ NetSignal() [3/3]

NetSignal ( Circuit circuit,
const Uuid uuid,
NetClass netclass,
const CircuitIdentifier name,
bool  autoName 
)
explicit

◆ ~NetSignal()

~NetSignal ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ getUuid()

const Uuid& getUuid ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getName()

const CircuitIdentifier& getName ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ hasAutoName()

bool hasAutoName ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNetClass()

NetClass& getNetClass ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getCircuit()

Circuit& getCircuit ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getComponentSignals()

const QList<ComponentSignalInstance*>& getComponentSignals ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getSchematicNetSegments()

const QList<SI_NetSegment*>& getSchematicNetSegments ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getBoardNetSegments()

const QList<BI_NetSegment*>& getBoardNetSegments ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getBoardPlanes()

const QList<BI_Plane*>& getBoardPlanes ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRegisteredElementsCount()

int getRegisteredElementsCount ( ) const
noexcept
+ Here is the caller graph for this function:

◆ isUsed()

bool isUsed ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isNameForced()

bool isNameForced ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAddedToCircuit()

bool isAddedToCircuit ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setName()

void setName ( const CircuitIdentifier name,
bool  isAutoName 
)
noexcept
+ Here is the caller graph for this function:

◆ addToCircuit()

void addToCircuit ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromCircuit()

void removeFromCircuit ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerComponentSignal()

void registerComponentSignal ( ComponentSignalInstance signal)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterComponentSignal()

void unregisterComponentSignal ( ComponentSignalInstance signal)
+ Here is the caller graph for this function:

◆ registerSchematicNetSegment()

void registerSchematicNetSegment ( SI_NetSegment netsegment)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterSchematicNetSegment()

void unregisterSchematicNetSegment ( SI_NetSegment netsegment)
+ Here is the caller graph for this function:

◆ registerBoardNetSegment()

void registerBoardNetSegment ( BI_NetSegment netsegment)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterBoardNetSegment()

void unregisterBoardNetSegment ( BI_NetSegment netsegment)
+ Here is the caller graph for this function:

◆ registerBoardPlane()

void registerBoardPlane ( BI_Plane plane)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterBoardPlane()

void unregisterBoardPlane ( BI_Plane plane)
+ Here is the caller graph for this function:

◆ serialize()

void serialize ( SExpression root) const

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

NetSignal& operator= ( const NetSignal rhs)
delete
+ Here is the caller graph for this function:

◆ operator==()

bool operator== ( const NetSignal rhs)
inlinenoexcept

◆ operator!=()

bool operator!= ( const NetSignal rhs)
inlinenoexcept

◆ nameChanged

void nameChanged ( const CircuitIdentifier newName)
signal
+ Here is the caller graph for this function:

Member Data Documentation

◆ mCircuit

Circuit& mCircuit
private

◆ mIsAddedToCircuit

bool mIsAddedToCircuit
private

◆ mUuid

Uuid mUuid
private

◆ mName

CircuitIdentifier mName
private

◆ mHasAutoName

bool mHasAutoName
private

◆ mNetClass

NetClass& mNetClass
private

◆ mRegisteredComponentSignals

QList<ComponentSignalInstance*> mRegisteredComponentSignals
private

◆ mRegisteredSchematicNetSegments

QList<SI_NetSegment*> mRegisteredSchematicNetSegments
private

◆ mRegisteredBoardNetSegments

QList<BI_NetSegment*> mRegisteredBoardNetSegments
private

◆ mRegisteredBoardPlanes

QList<BI_Plane*> mRegisteredBoardPlanes
private

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