LibrePCB Developers Documentation
DevicePadSignalMapItem Class Referencefinal

The DevicePadSignalMapItem class. More...

#include <devicepadsignalmap.h>

+ Collaboration diagram for DevicePadSignalMapItem:

Public Types

enum  Event
 
typedef Slot< DevicePadSignalMapItem, EventOnEditedSlot
 

Public Member Functions

 DevicePadSignalMapItem ()=delete
 
 DevicePadSignalMapItem (const DevicePadSignalMapItem &other) noexcept
 
 DevicePadSignalMapItem (const Uuid &pad, const tl::optional< Uuid > &signal) noexcept
 
 DevicePadSignalMapItem (const SExpression &node)
 
 ~DevicePadSignalMapItem () noexcept
 
const UuidgetUuid () const noexcept
 
const UuidgetPadUuid () const noexcept
 
const tl::optional< Uuid > & getSignalUuid () const noexcept
 
bool setSignalUuid (const tl::optional< Uuid > &uuid) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const DevicePadSignalMapItem &rhs) const noexcept
 
bool operator!= (const DevicePadSignalMapItem &rhs) const noexcept
 
DevicePadSignalMapItemoperator= (const DevicePadSignalMapItem &rhs) noexcept
 

Public Attributes

Signal< DevicePadSignalMapItem, EventonEdited
 

Private Attributes

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

Detailed Description

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum Event
strong
Enumerator
PadUuidChanged 
SignalUuidChanged 

Constructor & Destructor Documentation

◆ DevicePadSignalMapItem() [1/4]

◆ DevicePadSignalMapItem() [2/4]

DevicePadSignalMapItem ( const DevicePadSignalMapItem other)
noexcept

◆ DevicePadSignalMapItem() [3/4]

DevicePadSignalMapItem ( const Uuid pad,
const tl::optional< Uuid > &  signal 
)
noexcept

◆ DevicePadSignalMapItem() [4/4]

DevicePadSignalMapItem ( const SExpression node)
explicit

◆ ~DevicePadSignalMapItem()

~DevicePadSignalMapItem ( )
noexcept

Member Function Documentation

◆ getUuid()

const Uuid& getUuid ( ) const
inlinenoexcept

◆ getPadUuid()

const Uuid& getPadUuid ( ) const
inlinenoexcept

◆ getSignalUuid()

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

◆ setSignalUuid()

bool setSignalUuid ( const tl::optional< Uuid > &  uuid)
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:
+ Here is the caller graph for this function:

◆ operator==()

bool operator== ( const DevicePadSignalMapItem rhs) const
noexcept
+ Here is the caller graph for this function:

◆ operator!=()

bool operator!= ( const DevicePadSignalMapItem rhs) const
inlinenoexcept
+ Here is the call graph for this function:

◆ operator=()

DevicePadSignalMapItem & operator= ( const DevicePadSignalMapItem rhs)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ onEdited

◆ mPadUuid

Uuid mPadUuid
private

must be valid

◆ mSignalUuid

tl::optional<Uuid> mSignalUuid
private

tl::nullopt if not connected to a signal


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