LibrePCB Developers Documentation
DrcHoleRef Struct Reference

#include <boarddesignrulecheckmessages.h>

+ Collaboration diagram for DrcHoleRef:

Public Types

using Data = BoardDesignRuleCheckData
 

Public Member Functions

bool isPadHole () const noexcept
 
bool isViaHole () const noexcept
 
bool isPlated () const noexcept
 
const QString & getNetName () const noexcept
 
const Data::PadgetPad () const noexcept
 
PositiveLength getDiameter () const noexcept
 
void serialize (SExpression &node) const
 

Static Public Member Functions

static DrcHoleRef boardHole (const Data::Hole &hole)
 
static DrcHoleRef deviceHole (const Data::Device &device, const Data::Hole &hole)
 
static DrcHoleRef padHole (const Data::Device &device, const Data::Pad &pad, const Data::Hole &hole)
 
static DrcHoleRef via (const Data::Segment &segment, const Data::Via &via)
 

Private Attributes

const Data::HolemHole = nullptr
 
const Data::SegmentmSegment = nullptr
 
const Data::ViamVia = nullptr
 
const Data::DevicemDevice = nullptr
 
const Data::PadmPad = nullptr
 
QString mNetName
 

Member Typedef Documentation

◆ Data

Member Function Documentation

◆ isPadHole()

bool isPadHole ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isViaHole()

bool isViaHole ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isPlated()

bool isPlated ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ getNetName()

const QString & getNetName ( ) const
inlinenoexcept

◆ getPad()

const Data::Pad * getPad ( ) const
inlinenoexcept

◆ getDiameter()

PositiveLength getDiameter ( ) const
inlinenoexcept

◆ serialize()

void serialize ( SExpression node) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ boardHole()

static DrcHoleRef boardHole ( const Data::Hole hole)
inlinestatic

◆ deviceHole()

static DrcHoleRef deviceHole ( const Data::Device device,
const Data::Hole hole 
)
inlinestatic

◆ padHole()

static DrcHoleRef padHole ( const Data::Device device,
const Data::Pad pad,
const Data::Hole hole 
)
inlinestatic

◆ via()

static DrcHoleRef via ( const Data::Segment segment,
const Data::Via via 
)
inlinestatic
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mHole

const Data::Hole* mHole = nullptr
private

◆ mSegment

const Data::Segment* mSegment = nullptr
private

◆ mVia

const Data::Via* mVia = nullptr
private

◆ mDevice

const Data::Device* mDevice = nullptr
private

◆ mPad

const Data::Pad* mPad = nullptr
private

◆ mNetName

QString mNetName
private

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