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

The DevicePadSignalMapItem class. More...

#include <devicepadsignalmap.h>

+ Collaboration diagram for DevicePadSignalMapItem:

Public Types

enum class  Event
 
typedef Slot< DevicePadSignalMapItem, EventOnEditedSlot
 

Public Member Functions

 DevicePadSignalMapItem ()=delete
 
 DevicePadSignalMapItem (const DevicePadSignalMapItem &other) noexcept
 
 DevicePadSignalMapItem (const Uuid &pad, const std::optional< Uuid > &signal) noexcept
 
 DevicePadSignalMapItem (const SExpression &node)
 
 ~DevicePadSignalMapItem () noexcept
 
const UuidgetUuid () const noexcept
 
const UuidgetPadUuid () const noexcept
 
const std::optional< Uuid > & getSignalUuid () const noexcept
 
bool setSignalUuid (const std::optional< Uuid > &uuid) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node.
 
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
 
std::optional< UuidmSignalUuid
 std::nullopt if not connected to a signal
 

Detailed Description

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class 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 std::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 std::optional< Uuid > & getSignalUuid ( ) const
inlinenoexcept

◆ setSignalUuid()

bool setSignalUuid ( const std::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:

◆ operator==()

bool operator== ( const DevicePadSignalMapItem rhs) const
noexcept

◆ operator!=()

bool operator!= ( const DevicePadSignalMapItem rhs) const
inlinenoexcept

◆ operator=()

DevicePadSignalMapItem & operator= ( const DevicePadSignalMapItem rhs)
noexcept

Member Data Documentation

◆ onEdited

◆ mPadUuid

Uuid mPadUuid
private

must be valid

◆ mSignalUuid

std::optional<Uuid> mSignalUuid
private

std::nullopt if not connected to a signal


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