LibrePCB Developers Documentation
ComponentPinSignalMapItem Class Referencefinal

The ComponentPinSignalMapItem class maps a symbol pin to a component signal. More...

#include <componentpinsignalmap.h>

+ Collaboration diagram for ComponentPinSignalMapItem:

Public Types

enum class  Event
 
typedef Slot< ComponentPinSignalMapItem, EventOnEditedSlot
 

Public Member Functions

 ComponentPinSignalMapItem ()=delete
 
 ComponentPinSignalMapItem (const ComponentPinSignalMapItem &other) noexcept
 
 ComponentPinSignalMapItem (const Uuid &pin, const tl::optional< Uuid > &signal, const CmpSigPinDisplayType &displayType) noexcept
 
 ComponentPinSignalMapItem (const SExpression &node)
 
 ~ComponentPinSignalMapItem () noexcept
 
const UuidgetUuid () const noexcept
 
const UuidgetPinUuid () const noexcept
 
const tl::optional< Uuid > & getSignalUuid () const noexcept
 
const CmpSigPinDisplayTypegetDisplayType () const noexcept
 
bool setSignalUuid (const tl::optional< Uuid > &uuid) noexcept
 
bool setDisplayType (const CmpSigPinDisplayType &type) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const ComponentPinSignalMapItem &rhs) const noexcept
 
bool operator!= (const ComponentPinSignalMapItem &rhs) const noexcept
 
ComponentPinSignalMapItemoperator= (const ComponentPinSignalMapItem &rhs) noexcept
 

Public Attributes

Signal< ComponentPinSignalMapItem, EventonEdited
 

Private Attributes

Uuid mPinUuid
 must be valid More...
 
tl::optional< UuidmSignalUuid
 tl::nullopt if not connected to a signal More...
 
CmpSigPinDisplayType mDisplayType
 

Detailed Description

The ComponentPinSignalMapItem class maps a symbol pin to a component signal.

Following information is considered as the "interface" of a pin-signal-mapping and must therefore never be changed:

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PinUuidChanged 
SignalUuidChanged 
DisplayTypeChanged 

Constructor & Destructor Documentation

◆ ComponentPinSignalMapItem() [1/4]

◆ ComponentPinSignalMapItem() [2/4]

◆ ComponentPinSignalMapItem() [3/4]

ComponentPinSignalMapItem ( const Uuid pin,
const tl::optional< Uuid > &  signal,
const CmpSigPinDisplayType displayType 
)
noexcept

◆ ComponentPinSignalMapItem() [4/4]

ComponentPinSignalMapItem ( const SExpression node)
explicit

◆ ~ComponentPinSignalMapItem()

Member Function Documentation

◆ getUuid()

const Uuid & getUuid ( ) const
inlinenoexcept

◆ getPinUuid()

const Uuid & getPinUuid ( ) const
inlinenoexcept

◆ getSignalUuid()

const tl::optional< Uuid > & getSignalUuid ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getDisplayType()

const CmpSigPinDisplayType & getDisplayType ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setSignalUuid()

bool setSignalUuid ( const tl::optional< Uuid > &  uuid)
noexcept
+ Here is the caller graph for this function:

◆ setDisplayType()

bool setDisplayType ( const CmpSigPinDisplayType type)
noexcept
+ 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==()

bool operator== ( const ComponentPinSignalMapItem rhs) const
noexcept

◆ operator!=()

bool operator!= ( const ComponentPinSignalMapItem rhs) const
inlinenoexcept

◆ operator=()

ComponentPinSignalMapItem & operator= ( const ComponentPinSignalMapItem rhs)
noexcept

Member Data Documentation

◆ onEdited

◆ mPinUuid

Uuid mPinUuid
private

must be valid

◆ mSignalUuid

tl::optional<Uuid> mSignalUuid
private

tl::nullopt if not connected to a signal

◆ mDisplayType

CmpSigPinDisplayType mDisplayType
private

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