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 239 of file pcbexpr_evaluator.h.
PCBEXPR_EVALUATOR::PCBEXPR_EVALUATOR | ( | LIBEVAL::UNIT_RESOLVER * | aUnitResolver | ) |
Definition at line 585 of file pcbexpr_evaluator.cpp.
PCBEXPR_EVALUATOR::~PCBEXPR_EVALUATOR | ( | ) |
Definition at line 594 of file pcbexpr_evaluator.cpp.
bool PCBEXPR_EVALUATOR::Evaluate | ( | const wxString & | aExpr | ) |
Definition at line 599 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 254 of file pcbexpr_evaluator.h.
References m_errorStatus.
|
inline |
Definition at line 253 of file pcbexpr_evaluator.h.
References m_errorStatus, and LIBEVAL::ERROR_STATUS::pendingError.
|
inline |
Definition at line 246 of file pcbexpr_evaluator.h.
References m_result.
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
inline |
Definition at line 248 of file pcbexpr_evaluator.h.
References m_compiler, and LIBEVAL::COMPILER::SetErrorCallback().
Referenced by DRC_RULES_PARSER::parseValueWithUnits().
|
private |
Definition at line 259 of file pcbexpr_evaluator.h.
Referenced by Evaluate(), and SetErrorCallback().
|
private |
Definition at line 261 of file pcbexpr_evaluator.h.
Referenced by GetError(), and IsErrorPending().
|
private |
Definition at line 257 of file pcbexpr_evaluator.h.
Referenced by Evaluate(), and Result().
|
private |
Definition at line 260 of file pcbexpr_evaluator.h.