LibrePCB Developers Documentation
Loading...
Searching...
No Matches
Bus Class Referencefinal

The Bus class. More...

#include <bus.h>

Inherits QObject.

+ Collaboration diagram for Bus:

Signals

void nameChanged (const BusName &newName)
 

Public Member Functions

 Bus ()=delete
 
 Bus (const Bus &other)=delete
 
 Bus (Circuit &circuit, const Uuid &uuid, const BusName &name, bool autoName, bool prefixNetNames, const std::optional< UnsignedLength > &maxTraceLengthDifference)
 
 ~Bus () noexcept
 
const UuidgetUuid () const noexcept
 
const BusNamegetName () const noexcept
 
bool hasAutoName () const noexcept
 
bool getPrefixNetNames () const noexcept
 
const std::optional< UnsignedLength > & getMaxTraceLengthDifference () const noexcept
 
CircuitgetCircuit () const noexcept
 
const QList< SI_BusSegment * > & getSchematicBusSegments () const noexcept
 
QSet< NetSignal * > getConnectedNetSignals () const noexcept
 
bool isUsed () const noexcept
 
bool isAddedToCircuit () const noexcept
 
void setName (const BusName &name, bool isAutoName) noexcept
 
void setPrefixNetNames (bool prefix) noexcept
 
void setMaxTraceLengthDifference (const std::optional< UnsignedLength > &diff) noexcept
 
void addToCircuit ()
 
void removeFromCircuit ()
 
void registerSchematicBusSegment (SI_BusSegment &s)
 
void unregisterSchematicBusSegment (SI_BusSegment &s)
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node.
 
Busoperator= (const Bus &rhs)=delete
 
bool operator== (const Bus &rhs) const noexcept
 
bool operator!= (const Bus &rhs) const noexcept
 

Private Attributes

CircuitmCircuit
 
bool mIsAddedToCircuit
 
Uuid mUuid
 
BusName mName
 
bool mHasAutoName
 
bool mPrefixNetNames
 
std::optional< UnsignedLengthmMaxTraceLengthDifference
 
QList< SI_BusSegment * > mRegisteredSchematicBusSegments
 

Detailed Description

The Bus class.

Constructor & Destructor Documentation

◆ Bus() [1/3]

Bus ( )
delete

◆ Bus() [2/3]

Bus ( const Bus other)
delete

◆ Bus() [3/3]

Bus ( Circuit circuit,
const Uuid uuid,
const BusName name,
bool  autoName,
bool  prefixNetNames,
const std::optional< UnsignedLength > &  maxTraceLengthDifference 
)
explicit

◆ ~Bus()

~Bus ( )
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 BusName & getName ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ hasAutoName()

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

◆ getPrefixNetNames()

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

◆ getMaxTraceLengthDifference()

const std::optional< UnsignedLength > & getMaxTraceLengthDifference ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getCircuit()

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

◆ getSchematicBusSegments()

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

◆ getConnectedNetSignals()

QSet< NetSignal * > getConnectedNetSignals ( ) const
noexcept
+ Here is the caller graph for this function:

◆ isUsed()

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

◆ isAddedToCircuit()

bool isAddedToCircuit ( ) const
inlinenoexcept

◆ setName()

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

◆ setPrefixNetNames()

void setPrefixNetNames ( bool  prefix)
noexcept
+ Here is the caller graph for this function:

◆ setMaxTraceLengthDifference()

void setMaxTraceLengthDifference ( const std::optional< UnsignedLength > &  diff)
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:

◆ registerSchematicBusSegment()

void registerSchematicBusSegment ( SI_BusSegment s)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterSchematicBusSegment()

void unregisterSchematicBusSegment ( SI_BusSegment s)
+ 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=()

Bus & operator= ( const Bus rhs)
delete

◆ operator==()

bool operator== ( const Bus rhs) const
inlinenoexcept

◆ operator!=()

bool operator!= ( const Bus rhs) const
inlinenoexcept

◆ nameChanged

void nameChanged ( const BusName 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

BusName mName
private

◆ mHasAutoName

bool mHasAutoName
private

◆ mPrefixNetNames

bool mPrefixNetNames
private

◆ mMaxTraceLengthDifference

std::optional<UnsignedLength> mMaxTraceLengthDifference
private

◆ mRegisteredSchematicBusSegments

QList<SI_BusSegment*> mRegisteredSchematicBusSegments
private

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