KiCad PCB EDA Suite
|
#include <pcbexpr_evaluator.h>
Public Member Functions | |
PCBEXPR_EVALUATOR (LIBEVAL::UNIT_RESOLVER *aUnitResolver) | |
~PCBEXPR_EVALUATOR () | |
bool | Evaluate (const wxString &aExpr) |
int | Result () const |
EDA_UNITS | Units () const |
void | SetErrorCallback (std::function< void(const wxString &aMessage, int aOffset)> aCallback) |
bool | IsErrorPending () const |
const LIBEVAL::ERROR_STATUS & | GetError () const |
Private Attributes | |
int | m_result |
EDA_UNITS | m_units |
PCBEXPR_COMPILER | m_compiler |
PCBEXPR_UCODE | m_ucode |
LIBEVAL::ERROR_STATUS | m_errorStatus |
Definition at line 243 of file pcbexpr_evaluator.h.
PCBEXPR_EVALUATOR::PCBEXPR_EVALUATOR | ( | LIBEVAL::UNIT_RESOLVER * | aUnitResolver | ) |
Definition at line 751 of file pcbexpr_evaluator.cpp.
References m_compiler, m_errorStatus, m_result, m_ucode, m_units, and MM.
PCBEXPR_EVALUATOR::~PCBEXPR_EVALUATOR | ( | ) |
Definition at line 761 of file pcbexpr_evaluator.cpp.
bool PCBEXPR_EVALUATOR::Evaluate | ( | const wxString & | aExpr | ) |
Definition at line 766 of file pcbexpr_evaluator.cpp.
References F_Cu, KiROUND(), m_compiler, m_result, m_units, NULL_CONSTRAINT, result, LIBEVAL::UCODE::Run(), and LIBEVAL::VT_NUMERIC.
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
inline |
Definition at line 259 of file pcbexpr_evaluator.h.
References m_errorStatus.
|
inline |
Definition at line 258 of file pcbexpr_evaluator.h.
References m_errorStatus.
|
inline |
Definition at line 250 of file pcbexpr_evaluator.h.
References m_result.
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
inline |
Definition at line 253 of file pcbexpr_evaluator.h.
References m_compiler.
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
inline |
Definition at line 251 of file pcbexpr_evaluator.h.
References m_units.
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
private |
Definition at line 265 of file pcbexpr_evaluator.h.
Referenced by Evaluate(), PCBEXPR_EVALUATOR(), and SetErrorCallback().
|
private |
Definition at line 267 of file pcbexpr_evaluator.h.
Referenced by GetError(), IsErrorPending(), and PCBEXPR_EVALUATOR().
|
private |
Definition at line 262 of file pcbexpr_evaluator.h.
Referenced by Evaluate(), PCBEXPR_EVALUATOR(), and Result().
|
private |
Definition at line 266 of file pcbexpr_evaluator.h.
Referenced by PCBEXPR_EVALUATOR().
|
private |
Definition at line 263 of file pcbexpr_evaluator.h.
Referenced by Evaluate(), PCBEXPR_EVALUATOR(), and Units().