KiCad PCB EDA Suite
DRC_CONSTRAINT Class Reference

#include <drc_rule.h>

Public Member Functions

 DRC_CONSTRAINT (DRC_CONSTRAINT_T aType=NULL_CONSTRAINT, const wxString &aName=wxEmptyString)
 
bool IsNull () const
 
const MINOPTMAX< int > & GetValue () const
 
MINOPTMAX< int > & Value ()
 
void SetParentRule (DRC_RULE *aParentRule)
 
DRC_RULEGetParentRule () const
 
wxString GetName () const
 

Public Attributes

DRC_CONSTRAINT_T m_Type
 
MINOPTMAX< int > m_Value
 
int m_DisallowFlags
 

Private Attributes

wxString m_name
 
DRC_RULEm_parentRule
 

Detailed Description

Definition at line 104 of file drc_rule.h.

Constructor & Destructor Documentation

◆ DRC_CONSTRAINT()

DRC_CONSTRAINT::DRC_CONSTRAINT ( DRC_CONSTRAINT_T  aType = NULL_CONSTRAINT,
const wxString &  aName = wxEmptyString 
)
inline

Definition at line 107 of file drc_rule.h.

108  :
109  m_Type( aType ),
110  m_Value(),
111  m_DisallowFlags( 0 ),
112  m_name( aName ),
113  m_parentRule( nullptr )
114  {
115  }
DRC_RULE * m_parentRule
Definition: drc_rule.h:148
MINOPTMAX< int > m_Value
Definition: drc_rule.h:143
wxString m_name
Definition: drc_rule.h:147
int m_DisallowFlags
Definition: drc_rule.h:144
DRC_CONSTRAINT_T m_Type
Definition: drc_rule.h:142

Member Function Documentation

◆ GetName()

wxString DRC_CONSTRAINT::GetName ( void  ) const
inline

◆ GetParentRule()

◆ GetValue()

◆ IsNull()

bool DRC_CONSTRAINT::IsNull ( ) const
inline

Definition at line 117 of file drc_rule.h.

118  {
119  return m_Type == NULL_CONSTRAINT;
120  }
DRC_CONSTRAINT_T m_Type
Definition: drc_rule.h:142

References m_Type, and NULL_CONSTRAINT.

Referenced by ROUTER_TOOL::handleLayerSwitch(), and PNS_PCBNEW_RULE_RESOLVER::QueryConstraint().

◆ SetParentRule()

void DRC_CONSTRAINT::SetParentRule ( DRC_RULE aParentRule)
inline

Definition at line 125 of file drc_rule.h.

125 { m_parentRule = aParentRule; }
DRC_RULE * m_parentRule
Definition: drc_rule.h:148

References m_parentRule.

Referenced by DRC_RULE::AddConstraint().

◆ Value()

Member Data Documentation

◆ m_DisallowFlags

int DRC_CONSTRAINT::m_DisallowFlags

◆ m_name

wxString DRC_CONSTRAINT::m_name
private

Definition at line 147 of file drc_rule.h.

Referenced by GetName().

◆ m_parentRule

DRC_RULE* DRC_CONSTRAINT::m_parentRule
private

Definition at line 148 of file drc_rule.h.

Referenced by GetName(), GetParentRule(), and SetParentRule().

◆ m_Type

DRC_CONSTRAINT_T DRC_CONSTRAINT::m_Type

◆ m_Value


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