KiCad PCB EDA Suite
|
#include <pcb_expr_evaluator.h>
Public Member Functions | |
PCB_EXPR_CONTEXT (int aConstraint, PCB_LAYER_ID aLayer) | |
void | SetItems (BOARD_ITEM *a, BOARD_ITEM *b=nullptr) |
BOARD * | GetBoard () const |
int | GetConstraint () const |
BOARD_ITEM * | GetItem (int index) const |
PCB_LAYER_ID | GetLayer () const |
VALUE * | AllocValue () |
void | Push (VALUE *v) |
VALUE * | Pop () |
int | SP () const |
void | SetErrorCallback (std::function< void(const wxString &aMessage, int aOffset)> aCallback) |
bool | HasErrorCallback () |
void | ReportError (const wxString &aErrorMsg) |
Private Attributes | |
int | m_constraint |
BOARD_ITEM * | m_items [2] |
PCB_LAYER_ID | m_layer |
std::vector< VALUE * > | m_ownedValues |
VALUE * | m_stack [100] |
int | m_stackPtr |
std::function< void(const wxString &aMessage, int aOffset)> | m_errorCallback |
Definition at line 52 of file pcb_expr_evaluator.h.
|
inline |
Definition at line 55 of file pcb_expr_evaluator.h.
References m_items.
|
inlineinherited |
Definition at line 321 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_ownedValues.
Referenced by LIBEVAL::UOP::Exec(), existsOnLayer(), exprFromTo(), LIBEVAL::COMPILER::generateUCode(), getField(), inDiffPair(), insideArea(), insideBackCourtyard(), insideCourtyard(), insideFrontCourtyard(), isBlindBuriedVia(), isCoupledDiffPair(), isMicroVia(), isPlated(), memberOf(), and LIBEVAL::CONTEXT::Pop().
BOARD * PCB_EXPR_CONTEXT::GetBoard | ( | ) | const |
Definition at line 1174 of file pcb_expr_evaluator.cpp.
References BOARD_ITEM::GetBoard(), and m_items.
|
inline |
Definition at line 71 of file pcb_expr_evaluator.h.
References m_constraint.
Referenced by isCoupledDiffPair().
|
inline |
Definition at line 72 of file pcb_expr_evaluator.h.
References m_items.
Referenced by PCB_EXPR_VAR_REF::GetObject(), insideArea(), insideBackCourtyard(), insideCourtyard(), insideFrontCourtyard(), and isCoupledDiffPair().
|
inline |
Definition at line 73 of file pcb_expr_evaluator.h.
References m_layer.
Referenced by calcIsInsideArea(), calcIsInsideCourtyard(), PCB_EXPR_VAR_REF::GetValue(), and isInsideArea().
|
inlineinherited |
Definition at line 353 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_errorCallback.
Referenced by calcIsInsideArea(), LIBEVAL::UOP::Exec(), existsOnLayer(), getField(), inDiffPair(), insideArea(), insideBackCourtyard(), insideCourtyard(), insideFrontCourtyard(), and memberOf().
|
inlineinherited |
Definition at line 332 of file libeval_compiler.h.
References _, LIBEVAL::CONTEXT::AllocValue(), LIBEVAL::CONTEXT::m_stack, LIBEVAL::CONTEXT::m_stackPtr, and LIBEVAL::CONTEXT::ReportError().
Referenced by LIBEVAL::UOP::Exec(), existsOnLayer(), exprFromTo(), LIBEVAL::COMPILER::generateUCode(), getField(), inDiffPair(), insideArea(), insideBackCourtyard(), insideCourtyard(), insideFrontCourtyard(), memberOf(), and LIBEVAL::UCODE::Run().
|
inlineinherited |
Definition at line 327 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_stack, and LIBEVAL::CONTEXT::m_stackPtr.
Referenced by LIBEVAL::UOP::Exec(), existsOnLayer(), exprFromTo(), LIBEVAL::COMPILER::generateUCode(), getField(), inDiffPair(), insideArea(), insideBackCourtyard(), insideCourtyard(), insideFrontCourtyard(), isBlindBuriedVia(), isCoupledDiffPair(), isMicroVia(), isPlated(), and memberOf().
|
inherited |
Definition at line 659 of file libeval_compiler.cpp.
References LIBEVAL::CONTEXT::m_errorCallback.
Referenced by calcIsInsideArea(), LIBEVAL::UOP::Exec(), existsOnLayer(), getField(), inDiffPair(), insideArea(), insideBackCourtyard(), insideCourtyard(), insideFrontCourtyard(), memberOf(), and LIBEVAL::CONTEXT::Pop().
|
inlineinherited |
Definition at line 348 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_errorCallback.
Referenced by DRC_RULE_CONDITION::EvaluateFor(), and LIBEVAL::COMPILER::generateUCode().
|
inline |
Definition at line 63 of file pcb_expr_evaluator.h.
References m_items.
Referenced by DRC_RULE_CONDITION::EvaluateFor(), and testEvalExpr().
|
inlineinherited |
Definition at line 343 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_stackPtr.
Referenced by LIBEVAL::UCODE::Run().
|
private |
Definition at line 76 of file pcb_expr_evaluator.h.
Referenced by GetConstraint().
|
privateinherited |
Definition at line 362 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::HasErrorCallback(), LIBEVAL::CONTEXT::ReportError(), and LIBEVAL::CONTEXT::SetErrorCallback().
|
private |
Definition at line 77 of file pcb_expr_evaluator.h.
Referenced by GetBoard(), GetItem(), PCB_EXPR_CONTEXT(), and SetItems().
|
private |
Definition at line 78 of file pcb_expr_evaluator.h.
Referenced by GetLayer().
|
privateinherited |
Definition at line 358 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::AllocValue(), LIBEVAL::CONTEXT::CONTEXT(), and LIBEVAL::CONTEXT::~CONTEXT().
|
privateinherited |
Definition at line 359 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::Pop(), and LIBEVAL::CONTEXT::Push().
|
privateinherited |
Definition at line 360 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::Pop(), LIBEVAL::CONTEXT::Push(), and LIBEVAL::CONTEXT::SP().