KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DRC_RULE_CONDITION Class Reference

#include <drc_rule_condition.h>

Public Member Functions

 DRC_RULE_CONDITION (const wxString &aExpression="")
 
 ~DRC_RULE_CONDITION ()
 
bool EvaluateFor (const BOARD_ITEM *aItemA, const BOARD_ITEM *aItemB, int aConstraint, PCB_LAYER_ID aLayer, REPORTER *aReporter=nullptr)
 
bool Compile (REPORTER *aReporter, int aSourceLine=0, int aSourceOffset=0)
 
void SetExpression (const wxString &aExpression)
 
wxString GetExpression () const
 

Private Attributes

wxString m_expression
 
std::unique_ptr< PCBEXPR_UCODEm_ucode
 

Detailed Description

Definition at line 35 of file drc_rule_condition.h.

Constructor & Destructor Documentation

◆ DRC_RULE_CONDITION()

DRC_RULE_CONDITION::DRC_RULE_CONDITION ( const wxString &  aExpression = "")

Definition at line 31 of file drc_rule_condition.cpp.

◆ ~DRC_RULE_CONDITION()

DRC_RULE_CONDITION::~DRC_RULE_CONDITION ( )

Definition at line 38 of file drc_rule_condition.cpp.

Member Function Documentation

◆ Compile()

bool DRC_RULE_CONDITION::Compile ( REPORTER aReporter,
int  aSourceLine = 0,
int  aSourceOffset = 0 
)

◆ EvaluateFor()

bool DRC_RULE_CONDITION::EvaluateFor ( const BOARD_ITEM aItemA,
const BOARD_ITEM aItemB,
int  aConstraint,
PCB_LAYER_ID  aLayer,
REPORTER aReporter = nullptr 
)

◆ GetExpression()

wxString DRC_RULE_CONDITION::GetExpression ( ) const
inline

Definition at line 47 of file drc_rule_condition.h.

References m_expression.

Referenced by Compile(), and EvaluateFor().

◆ SetExpression()

void DRC_RULE_CONDITION::SetExpression ( const wxString &  aExpression)
inline

Definition at line 46 of file drc_rule_condition.h.

References m_expression.

Member Data Documentation

◆ m_expression

wxString DRC_RULE_CONDITION::m_expression
private

Definition at line 50 of file drc_rule_condition.h.

Referenced by GetExpression(), and SetExpression().

◆ m_ucode

std::unique_ptr<PCBEXPR_UCODE> DRC_RULE_CONDITION::m_ucode
private

Definition at line 51 of file drc_rule_condition.h.

Referenced by Compile(), and EvaluateFor().


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