LibrePCB Developers Documentation
NetLineAnchor Class Referencefinal

The NetLineAnchor class. More...

#include <netline.h>

+ Inheritance diagram for NetLineAnchor:
+ Collaboration diagram for NetLineAnchor:

Classes

struct  PinAnchor
 

Public Member Functions

 NetLineAnchor ()=delete
 
 NetLineAnchor (const NetLineAnchor &other) noexcept
 
 NetLineAnchor (const SExpression &node, const Version &fileFormat)
 
 ~NetLineAnchor () noexcept
 
const tl::optional< Uuid > & tryGetJunction () const noexcept
 
const tl::optional< PinAnchor > & tryGetPin () const noexcept
 
void serialize (SExpression &root) const override
 Serialize the object into an existing S-Expression node. More...
 
bool operator== (const NetLineAnchor &rhs) const noexcept
 
bool operator!= (const NetLineAnchor &rhs) const noexcept
 
NetLineAnchoroperator= (const NetLineAnchor &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...
 

Static Public Member Functions

static NetLineAnchor junction (const Uuid &junction) noexcept
 
static NetLineAnchor pin (const Uuid &symbol, const Uuid &pin) noexcept
 
- 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)
 

Private Member Functions

 NetLineAnchor (const tl::optional< Uuid > &junction, const tl::optional< PinAnchor > &pin) noexcept
 

Private Attributes

tl::optional< UuidmJunction
 
tl::optional< PinAnchormPin
 

Detailed Description

The NetLineAnchor class.

Constructor & Destructor Documentation

◆ NetLineAnchor() [1/4]

NetLineAnchor ( )
delete
+ Here is the caller graph for this function:

◆ NetLineAnchor() [2/4]

NetLineAnchor ( const NetLineAnchor other)
noexcept

◆ NetLineAnchor() [3/4]

NetLineAnchor ( const SExpression node,
const Version fileFormat 
)
+ Here is the call graph for this function:

◆ ~NetLineAnchor()

~NetLineAnchor ( )
noexcept
+ Here is the caller graph for this function:

◆ NetLineAnchor() [4/4]

NetLineAnchor ( const tl::optional< Uuid > &  junction,
const tl::optional< PinAnchor > &  pin 
)
privatenoexcept

Member Function Documentation

◆ tryGetJunction()

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

◆ tryGetPin()

const tl::optional<PinAnchor>& tryGetPin ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ 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 NetLineAnchor rhs) const
noexcept

◆ operator!=()

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

◆ operator=()

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

◆ junction()

NetLineAnchor junction ( const Uuid junction)
staticnoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pin()

NetLineAnchor pin ( const Uuid symbol,
const Uuid pin 
)
staticnoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mJunction

tl::optional<Uuid> mJunction
private

◆ mPin

tl::optional<PinAnchor> mPin
private

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