LibrePCB Developers Documentation
NetClass Class Referencefinal

The NetClass class. More...

#include <netclass.h>

Inherits QObject.

+ Collaboration diagram for NetClass:

Public Member Functions

 NetClass ()=delete
 
 NetClass (const NetClass &other)=delete
 
 NetClass (Circuit &circuit, const Uuid &uuid, const ElementName &name)
 
 ~NetClass () noexcept
 
CircuitgetCircuit () const noexcept
 
const UuidgetUuid () const noexcept
 
const ElementNamegetName () const noexcept
 
int getNetSignalCount () const noexcept
 
bool isUsed () const noexcept
 
void setName (const ElementName &name) noexcept
 
void addToCircuit ()
 
void removeFromCircuit ()
 
void registerNetSignal (NetSignal &signal)
 
void unregisterNetSignal (NetSignal &signal)
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
NetClassoperator= (const NetClass &rhs)=delete
 

Private Attributes

CircuitmCircuit
 
bool mIsAddedToCircuit
 
Uuid mUuid
 
ElementName mName
 
QHash< Uuid, NetSignal * > mRegisteredNetSignals
 all registered netsignals More...
 

Detailed Description

The NetClass class.

Constructor & Destructor Documentation

◆ NetClass() [1/3]

NetClass ( )
delete

◆ NetClass() [2/3]

NetClass ( const NetClass other)
delete

◆ NetClass() [3/3]

NetClass ( Circuit circuit,
const Uuid uuid,
const ElementName name 
)
explicit

◆ ~NetClass()

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

Member Function Documentation

◆ getCircuit()

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

◆ getUuid()

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

◆ getName()

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

◆ getNetSignalCount()

int getNetSignalCount ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isUsed()

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

◆ setName()

void setName ( const ElementName name)
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:

◆ registerNetSignal()

void registerNetSignal ( NetSignal signal)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterNetSignal()

void unregisterNetSignal ( NetSignal signal)
+ Here is the call graph for this function:
+ 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:

◆ operator=()

NetClass & operator= ( const NetClass rhs)
delete

Member Data Documentation

◆ mCircuit

Circuit& mCircuit
private

◆ mIsAddedToCircuit

bool mIsAddedToCircuit
private

◆ mUuid

Uuid mUuid
private

◆ mName

ElementName mName
private

◆ mRegisteredNetSignals

QHash<Uuid, NetSignal*> mRegisteredNetSignals
private

all registered netsignals


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