LibrePCB Developers Documentation
DevicePadSignalMapItem Class Referencefinal

The DevicePadSignalMapItem class. More...

#include <devicepadsignalmap.h>

+ Inheritance diagram for DevicePadSignalMapItem:
+ 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 override
 Serialize the object into an existing S-Expression node. More...
 
bool operator== (const DevicePadSignalMapItem &rhs) const noexcept
 
bool operator!= (const DevicePadSignalMapItem &rhs) const noexcept
 
DevicePadSignalMapItemoperator= (const DevicePadSignalMapItem &rhs) noexcept
 
- Public Member Functions inherited from SerializableObject
 SerializableObject () noexcept
 
virtual ~SerializableObject () noexcept
 
SExpression serializeToDomElement (const QString &name) const
 Serialize the object to a new S-Expression node. More...
 

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...
 

Additional Inherited Members

- Static Public Member Functions inherited from SerializableObject
template<typename T >
static void serializeObjectContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName)
 

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
overridevirtual

Serialize the object into an existing S-Expression node.

This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.

Note
The generated S-Expression node has always the format of the application's major version (it's not possible to generate DOMs of older versions).
Parameters
rootThe target DOM root node
Exceptions
ExceptionThis method throws an exception if an error occurs.

Implements SerializableObject.

+ 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: