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 |
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 |
PCBEXPR_COMPILER | m_compiler |
PCBEXPR_UCODE | m_ucode |
LIBEVAL::ERROR_STATUS | m_errorStatus |
Definition at line 234 of file pcbexpr_evaluator.h.
PCBEXPR_EVALUATOR::PCBEXPR_EVALUATOR | ( | LIBEVAL::UNIT_RESOLVER * | aUnitResolver | ) |
Definition at line 560 of file pcbexpr_evaluator.cpp.
PCBEXPR_EVALUATOR::~PCBEXPR_EVALUATOR | ( | ) |
Definition at line 569 of file pcbexpr_evaluator.cpp.
bool PCBEXPR_EVALUATOR::Evaluate | ( | const wxString & | aExpr | ) |
Definition at line 574 of file pcbexpr_evaluator.cpp.
References LIBEVAL::VALUE::AsDouble(), LIBEVAL::COMPILER::Compile(), F_Cu, LIBEVAL::VALUE::GetType(), KiROUND(), m_compiler, m_result, NULL_CONSTRAINT, LIBEVAL::UCODE::Run(), and LIBEVAL::VT_NUMERIC.
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
inline |
Definition at line 249 of file pcbexpr_evaluator.h.
References m_errorStatus.
|
inline |
Definition at line 248 of file pcbexpr_evaluator.h.
References m_errorStatus, and LIBEVAL::ERROR_STATUS::pendingError.
|
inline |
Definition at line 241 of file pcbexpr_evaluator.h.
References m_result.
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
inline |
Definition at line 243 of file pcbexpr_evaluator.h.
References m_compiler, and LIBEVAL::COMPILER::SetErrorCallback().
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
private |
Definition at line 254 of file pcbexpr_evaluator.h.
Referenced by Evaluate(), and SetErrorCallback().
|
private |
Definition at line 256 of file pcbexpr_evaluator.h.
Referenced by GetError(), and IsErrorPending().
|
private |
Definition at line 252 of file pcbexpr_evaluator.h.
Referenced by Evaluate(), and Result().
|
private |
Definition at line 255 of file pcbexpr_evaluator.h.