LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DevicePadSignalMapItem Class Referencefinal

The DevicePadSignalMapItem class. More...

#include <devicepadsignalmap.h>

+ Inheritance diagram for DevicePadSignalMapItem:
+ Collaboration diagram for DevicePadSignalMapItem:

Signals

void signalUuidChanged (const tl::optional< Uuid > &uuid)
 

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

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

Constructor & Destructor Documentation

DevicePadSignalMapItem ( const DevicePadSignalMapItem other)
noexcept
DevicePadSignalMapItem ( const Uuid pad,
const tl::optional< Uuid > &  signal 
)
noexcept
DevicePadSignalMapItem ( const SExpression node)
explicit

+ Here is the call graph for this function:

~DevicePadSignalMapItem ( )
noexcept

Member Function Documentation

const Uuid& getUuid ( ) const
inlinenoexcept
const Uuid& getPadUuid ( ) const
inlinenoexcept
const tl::optional<Uuid>& getSignalUuid ( ) const
inlinenoexcept
void setSignalUuid ( const tl::optional< Uuid > &  uuid)
noexcept

+ Here is the caller graph for this function:

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:

bool operator== ( const DevicePadSignalMapItem rhs) const
noexcept
bool operator!= ( const DevicePadSignalMapItem rhs) const
inlinenoexcept
DevicePadSignalMapItem & operator= ( const DevicePadSignalMapItem rhs)
noexcept
void signalUuidChanged ( const tl::optional< Uuid > &  uuid)
signal

+ Here is the caller graph for this function:

Member Data Documentation

Uuid mPadUuid
private

must be valid

tl::optional<Uuid> mSignalUuid
private

tl::nullopt if not connected to a signal


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