KiCad PCB EDA Suite
|
#include <pcbexpr_evaluator.h>
Public Member Functions | |
PCBEXPR_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 () |
VALUE * | StoreValue (VALUE *aValue) |
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 pcbexpr_evaluator.h.
|
inline |
Definition at line 55 of file pcbexpr_evaluator.h.
References m_items.
|
inlineinherited |
Definition at line 321 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_ownedValues.
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isBlindBuriedViaFunc(), isCoupledDiffPairFunc(), isMicroVia(), isPlatedFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), and LIBEVAL::CONTEXT::Pop().
BOARD * PCBEXPR_CONTEXT::GetBoard | ( | ) | const |
Definition at line 360 of file pcbexpr_evaluator.cpp.
References BOARD_ITEM::GetBoard(), and m_items.
Referenced by PCBEXPR_VAR_REF::GetValue().
|
inline |
Definition at line 71 of file pcbexpr_evaluator.h.
References m_constraint.
Referenced by isCoupledDiffPairFunc().
|
inline |
Definition at line 72 of file pcbexpr_evaluator.h.
References m_items.
Referenced by PCBEXPR_VAR_REF::GetObject(), isCoupledDiffPairFunc(), searchAreas(), and searchFootprints().
|
inline |
Definition at line 73 of file pcbexpr_evaluator.h.
References m_layer.
Referenced by collidesWithArea(), collidesWithCourtyard(), enclosedByAreaFunc(), PCBEXPR_VAR_REF::GetValue(), and intersectsAreaFunc().
|
inlineinherited |
Definition at line 359 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_errorCallback.
Referenced by collidesWithArea(), enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), getFieldFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), and memberOfSheetFunc().
|
inlineinherited |
Definition at line 338 of file libeval_compiler.h.
References _, LIBEVAL::CONTEXT::AllocValue(), LIBEVAL::CONTEXT::m_stack, LIBEVAL::CONTEXT::m_stackPtr, and LIBEVAL::CONTEXT::ReportError().
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), and LIBEVAL::UCODE::Run().
|
inlineinherited |
Definition at line 333 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_stack, and LIBEVAL::CONTEXT::m_stackPtr.
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isBlindBuriedViaFunc(), isCoupledDiffPairFunc(), isMicroVia(), isPlatedFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), and memberOfSheetFunc().
|
inherited |
Definition at line 677 of file libeval_compiler.cpp.
References LIBEVAL::CONTEXT::m_errorCallback.
Referenced by collidesWithArea(), enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), getFieldFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), and LIBEVAL::CONTEXT::Pop().
|
inlineinherited |
Definition at line 354 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 pcbexpr_evaluator.h.
References m_items.
Referenced by DRC_RULE_CONDITION::EvaluateFor(), and testEvalExpr().
|
inlineinherited |
Definition at line 349 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_stackPtr.
Referenced by LIBEVAL::UCODE::Run().
|
inlineinherited |
Definition at line 327 of file libeval_compiler.h.
References LIBEVAL::CONTEXT::m_ownedValues.
Referenced by LIBEVAL::UOP::Exec().
|
private |
Definition at line 76 of file pcbexpr_evaluator.h.
Referenced by GetConstraint().
|
privateinherited |
Definition at line 368 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::HasErrorCallback(), LIBEVAL::CONTEXT::ReportError(), and LIBEVAL::CONTEXT::SetErrorCallback().
|
private |
Definition at line 77 of file pcbexpr_evaluator.h.
Referenced by GetBoard(), GetItem(), PCBEXPR_CONTEXT(), and SetItems().
|
private |
Definition at line 78 of file pcbexpr_evaluator.h.
Referenced by GetLayer().
|
privateinherited |
Definition at line 364 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::AllocValue(), LIBEVAL::CONTEXT::CONTEXT(), LIBEVAL::CONTEXT::StoreValue(), and LIBEVAL::CONTEXT::~CONTEXT().
|
privateinherited |
Definition at line 365 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::Pop(), and LIBEVAL::CONTEXT::Push().
|
privateinherited |
Definition at line 366 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::Pop(), LIBEVAL::CONTEXT::Push(), and LIBEVAL::CONTEXT::SP().