LibrePCB Developers Documentation
TraceAnchor Class Referencefinal

The TraceAnchor class. More...

#include <trace.h>

+ Collaboration diagram for TraceAnchor:

Classes

struct  PadAnchor
 

Public Member Functions

 TraceAnchor ()=delete
 
 TraceAnchor (const TraceAnchor &other) noexcept
 
 TraceAnchor (const SExpression &node)
 
 ~TraceAnchor () noexcept
 
const tl::optional< Uuid > & tryGetJunction () const noexcept
 
const tl::optional< Uuid > & tryGetVia () const noexcept
 
const tl::optional< PadAnchor > & tryGetPad () const noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const TraceAnchor &rhs) const noexcept
 
bool operator!= (const TraceAnchor &rhs) const noexcept
 
TraceAnchoroperator= (const TraceAnchor &rhs) noexcept
 

Static Public Member Functions

static TraceAnchor junction (const Uuid &junction) noexcept
 
static TraceAnchor via (const Uuid &via) noexcept
 
static TraceAnchor pad (const Uuid &device, const Uuid &pad) noexcept
 

Private Member Functions

 TraceAnchor (const tl::optional< Uuid > &junction, const tl::optional< Uuid > &via, const tl::optional< PadAnchor > &pad) noexcept
 

Private Attributes

tl::optional< UuidmJunction
 
tl::optional< UuidmVia
 
tl::optional< PadAnchormPad
 

Detailed Description

The TraceAnchor class.

Constructor & Destructor Documentation

◆ TraceAnchor() [1/4]

TraceAnchor ( )
delete

◆ TraceAnchor() [2/4]

TraceAnchor ( const TraceAnchor other)
noexcept

◆ TraceAnchor() [3/4]

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

◆ ~TraceAnchor()

~TraceAnchor ( )
noexcept

◆ TraceAnchor() [4/4]

TraceAnchor ( const tl::optional< Uuid > &  junction,
const tl::optional< Uuid > &  via,
const tl::optional< PadAnchor > &  pad 
)
privatenoexcept

Member Function Documentation

◆ tryGetJunction()

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

◆ tryGetVia()

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

◆ tryGetPad()

const tl::optional< PadAnchor > & tryGetPad ( ) 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 TraceAnchor rhs) const
noexcept

◆ operator!=()

bool operator!= ( const TraceAnchor rhs) const
inlinenoexcept

◆ operator=()

TraceAnchor & operator= ( const TraceAnchor rhs)
noexcept

◆ junction()

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

◆ via()

TraceAnchor via ( const Uuid via)
staticnoexcept
+ Here is the caller graph for this function:

◆ pad()

TraceAnchor pad ( const Uuid device,
const Uuid pad 
)
staticnoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mJunction

tl::optional<Uuid> mJunction
private

◆ mVia

tl::optional<Uuid> mVia
private

◆ mPad

tl::optional<PadAnchor> mPad
private

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