LibrePCB Developers Documentation
NetLineAnchor Class Referencefinal

The NetLineAnchor class. More...

#include <netline.h>

+ Collaboration diagram for NetLineAnchor:

Classes

struct  PinAnchor
 

Public Member Functions

 NetLineAnchor ()=delete
 
 NetLineAnchor (const NetLineAnchor &other) noexcept
 
 NetLineAnchor (const SExpression &node)
 
 ~NetLineAnchor () noexcept
 
const tl::optional< Uuid > & tryGetJunction () const noexcept
 
const tl::optional< PinAnchor > & tryGetPin () const noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const NetLineAnchor &rhs) const noexcept
 
bool operator!= (const NetLineAnchor &rhs) const noexcept
 
NetLineAnchoroperator= (const NetLineAnchor &rhs) noexcept
 

Static Public Member Functions

static NetLineAnchor junction (const Uuid &junction) noexcept
 
static NetLineAnchor pin (const Uuid &symbol, const Uuid &pin) noexcept
 

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

◆ NetLineAnchor() [2/4]

NetLineAnchor ( const NetLineAnchor other)
noexcept

◆ NetLineAnchor() [3/4]

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

◆ ~NetLineAnchor()

~NetLineAnchor ( )
noexcept

◆ 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 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 NetLineAnchor rhs) const
noexcept

◆ operator!=()

bool operator!= ( const NetLineAnchor rhs) const
inlinenoexcept

◆ operator=()

NetLineAnchor & operator= ( const NetLineAnchor rhs)
noexcept

◆ junction()

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

◆ pin()

NetLineAnchor pin ( const Uuid symbol,
const Uuid pin 
)
staticnoexcept
+ 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: