LibrePCB Developers Documentation
Loading...
Searching...
No Matches
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 std::optional< Uuid > & tryGetJunction () const noexcept
 
const std::optional< PinAnchor > & tryGetPin () const noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node.
 
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 std::optional< Uuid > &junction, const std::optional< PinAnchor > &pin) noexcept
 

Private Attributes

std::optional< UuidmJunction
 
std::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 std::optional< Uuid > &  junction,
const std::optional< PinAnchor > &  pin 
)
privatenoexcept

Member Function Documentation

◆ tryGetJunction()

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

◆ tryGetPin()

const std::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

std::optional<Uuid> mJunction
private

◆ mPin

std::optional<PinAnchor> mPin
private

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