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

The SI_BusJunction class. More...

#include <si_busjunction.h>

+ Inheritance diagram for SI_BusJunction:
+ Collaboration diagram for SI_BusJunction:

Public Types

enum class  Event
 
typedef Slot< SI_BusJunction, EventOnEditedSlot
 

Public Member Functions

 SI_BusJunction ()=delete
 
 SI_BusJunction (const SI_BusJunction &other)=delete
 
 SI_BusJunction (SI_BusSegment &segment, const Uuid &uuid, const Point &position)
 
 ~SI_BusJunction () noexcept
 
const UuidgetUuid () const noexcept
 
const PointgetPosition () const noexcept override
 
const JunctiongetJunction () const noexcept
 
bool isVisibleJunction () const noexcept
 
SI_BusSegmentgetBusSegment () const noexcept
 
bool isUsed () const noexcept
 
bool isOpen () const noexcept override
 
void setPosition (const Point &position) noexcept
 
void addToSchematic () override
 
void removeFromSchematic () override
 
void registerBusLine (SI_BusLine &l)
 
void unregisterBusLine (SI_BusLine &l)
 
const QSet< SI_BusLine * > & getBusLines () const noexcept
 
void registerNetLine (SI_NetLine &netline) override
 
void unregisterNetLine (SI_NetLine &netline) override
 
const QSet< SI_NetLine * > & getNetLines () const noexcept override
 
NetLineAnchor toNetLineAnchor () const noexcept override
 
SI_BusJunctionoperator= (const SI_BusJunction &rhs)=delete
 
bool operator== (const SI_BusJunction &rhs) noexcept
 
bool operator!= (const SI_BusJunction &rhs) noexcept
 
- Public Member Functions inherited from SI_Base
 SI_Base ()=delete
 
 SI_Base (const SI_Base &other)=delete
 
 SI_Base (Schematic &schematic) noexcept
 
virtual ~SI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
SchematicgetSchematic () const noexcept
 
virtual bool isAddedToSchematic () const noexcept
 
SI_Baseoperator= (const SI_Base &rhs)=delete
 
- Public Member Functions inherited from SI_NetLineAnchor
 SI_NetLineAnchor () noexcept=default
 
virtual ~SI_NetLineAnchor () noexcept=default
 

Public Attributes

Signal< SI_BusJunction, EventonEdited
 

Private Attributes

SI_BusSegmentmSegment
 
Junction mJunction
 
QSet< SI_BusLine * > mRegisteredBusLines
 all registered netlines
 
QSet< SI_NetLine * > mRegisteredNetLines
 all registered netlines
 

Additional Inherited Members

- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_BusJunction class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PositionChanged 
JunctionChanged 
BusNameChanged 

Constructor & Destructor Documentation

◆ SI_BusJunction() [1/3]

SI_BusJunction ( )
delete

◆ SI_BusJunction() [2/3]

SI_BusJunction ( const SI_BusJunction other)
delete

◆ SI_BusJunction() [3/3]

SI_BusJunction ( SI_BusSegment segment,
const Uuid uuid,
const Point position 
)
+ Here is the call graph for this function:

◆ ~SI_BusJunction()

~SI_BusJunction ( )
noexcept

Member Function Documentation

◆ getUuid()

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

◆ getPosition()

const Point & getPosition ( ) const
inlineoverridevirtualnoexcept

Implements SI_NetLineAnchor.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getJunction()

const Junction & getJunction ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isVisibleJunction()

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

◆ getBusSegment()

SI_BusSegment & getBusSegment ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isUsed()

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

◆ isOpen()

bool isOpen ( ) const
overridevirtualnoexcept

Implements SI_NetLineAnchor.

+ Here is the caller graph for this function:

◆ setPosition()

void setPosition ( const Point position)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToSchematic()

void addToSchematic ( )
overridevirtual

Reimplemented from SI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromSchematic()

void removeFromSchematic ( )
overridevirtual

Reimplemented from SI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerBusLine()

void registerBusLine ( SI_BusLine l)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterBusLine()

void unregisterBusLine ( SI_BusLine l)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBusLines()

const QSet< SI_BusLine * > & getBusLines ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ registerNetLine()

void registerNetLine ( SI_NetLine netline)
overridevirtual

Implements SI_NetLineAnchor.

+ Here is the call graph for this function:

◆ unregisterNetLine()

void unregisterNetLine ( SI_NetLine netline)
overridevirtual

Implements SI_NetLineAnchor.

+ Here is the call graph for this function:

◆ getNetLines()

const QSet< SI_NetLine * > & getNetLines ( ) const
inlineoverridevirtualnoexcept

Implements SI_NetLineAnchor.

◆ toNetLineAnchor()

NetLineAnchor toNetLineAnchor ( ) const
overridevirtualnoexcept

Implements SI_NetLineAnchor.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

SI_BusJunction & operator= ( const SI_BusJunction rhs)
delete

◆ operator==()

bool operator== ( const SI_BusJunction rhs)
inlinenoexcept

◆ operator!=()

bool operator!= ( const SI_BusJunction rhs)
inlinenoexcept

Member Data Documentation

◆ onEdited

◆ mSegment

SI_BusSegment& mSegment
private

◆ mJunction

Junction mJunction
private

◆ mRegisteredBusLines

QSet<SI_BusLine*> mRegisteredBusLines
private

all registered netlines

◆ mRegisteredNetLines

QSet<SI_NetLine*> mRegisteredNetLines
private

all registered netlines


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