LibrePCB Developers Documentation
Junction Class Referencefinal

The Junction class represents the connection point between netlines or traces. More...

#include <junction.h>

+ Collaboration diagram for Junction:

Public Types

enum class  Event
 
typedef Slot< Junction, EventOnEditedSlot
 

Public Member Functions

 Junction ()=delete
 
 Junction (const Junction &other) noexcept
 
 Junction (const Uuid &uuid, const Junction &other) noexcept
 
 Junction (const Uuid &uuid, const Point &position) noexcept
 
 Junction (const SExpression &node)
 
 ~Junction () noexcept
 
const UuidgetUuid () const noexcept
 
const PointgetPosition () const noexcept
 
bool setUuid (const Uuid &uuid) noexcept
 
bool setPosition (const Point &position) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const Junction &rhs) const noexcept
 
bool operator!= (const Junction &rhs) const noexcept
 
Junctionoperator= (const Junction &rhs) noexcept
 

Public Attributes

Signal< Junction, EventonEdited
 

Private Attributes

Uuid mUuid
 
Point mPosition
 

Detailed Description

The Junction class represents the connection point between netlines or traces.

The main purpose of this class is to serialize and deserialize junctions contained in schematics or boards.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
UuidChanged 
PositionChanged 

Constructor & Destructor Documentation

◆ Junction() [1/5]

Junction ( )
delete

◆ Junction() [2/5]

Junction ( const Junction other)
noexcept

◆ Junction() [3/5]

Junction ( const Uuid uuid,
const Junction other 
)
noexcept

◆ Junction() [4/5]

Junction ( const Uuid uuid,
const Point position 
)
noexcept

◆ Junction() [5/5]

Junction ( const SExpression node)
explicit

◆ ~Junction()

~Junction ( )
noexcept

Member Function Documentation

◆ getUuid()

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

◆ getPosition()

const Point & getPosition ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setUuid()

bool setUuid ( const Uuid uuid)
noexcept

◆ setPosition()

bool setPosition ( const Point position)
noexcept

◆ 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==()

bool operator== ( const Junction rhs) const
noexcept

◆ operator!=()

bool operator!= ( const Junction rhs) const
inlinenoexcept

◆ operator=()

Junction & operator= ( const Junction rhs)
noexcept

Member Data Documentation

◆ onEdited

Signal<Junction, Event> onEdited

◆ mUuid

Uuid mUuid
private

◆ mPosition

Point mPosition
private

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