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
 
void SetName (const wxString &aName)
 
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:150
MINOPTMAX< int > m_Value
Definition: drc_rule.h:145
wxString m_name
Definition: drc_rule.h:149
int m_DisallowFlags
Definition: drc_rule.h:146
DRC_CONSTRAINT_T m_Type
Definition: drc_rule.h:144

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:144

References m_Type, and NULL_CONSTRAINT.

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

◆ SetName()

void DRC_CONSTRAINT::SetName ( const wxString &  aName)
inline

Definition at line 128 of file drc_rule.h.

128 { m_name = aName; }
wxString m_name
Definition: drc_rule.h:149

References m_name.

◆ 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:150

References m_parentRule.

Referenced by DRC_RULE::AddConstraint().

◆ Value()

Member Data Documentation

◆ m_DisallowFlags

int DRC_CONSTRAINT::m_DisallowFlags

Definition at line 146 of file drc_rule.h.

Referenced by DRC_ENGINE::loadImplicitRules(), and DRC_RULES_PARSER::parseConstraint().

◆ m_name

wxString DRC_CONSTRAINT::m_name
private

Definition at line 149 of file drc_rule.h.

Referenced by GetName(), and SetName().

◆ m_parentRule

DRC_RULE* DRC_CONSTRAINT::m_parentRule
private

Definition at line 150 of file drc_rule.h.

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

◆ m_Type

◆ m_Value


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