KiCad PCB EDA Suite
|
#include <pcbexpr_evaluator.h>
Public Member Functions | |
PCBEXPR_CONTEXT (int aConstraint=0, PCB_LAYER_ID aLayer=F_Cu) | |
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 322 of file libeval_compiler.h.
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), hasComponentClassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isBlindBuriedViaFunc(), isCoupledDiffPairFunc(), isMicroVia(), isPlatedFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), and memberOfSheetFunc().
BOARD * PCBEXPR_CONTEXT::GetBoard | ( | ) | const |
Definition at line 486 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 360 of file libeval_compiler.h.
Referenced by collidesWithArea(), enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), getFieldFunc(), hasComponentClassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), and memberOfSheetFunc().
|
inlineinherited |
Definition at line 339 of file libeval_compiler.h.
References _.
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), hasComponentClassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), and LIBEVAL::UCODE::Run().
|
inlineinherited |
Definition at line 334 of file libeval_compiler.h.
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), hasComponentClassFunc(), hasNetclassFunc(), 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(), hasComponentClassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), and memberOfSheetFunc().
|
inlineinherited |
Definition at line 355 of file libeval_compiler.h.
Referenced by DRC_RULE_CONDITION::EvaluateFor(), LIBEVAL::COMPILER::generateUCode(), and MULTICHANNEL_TOOL::identifyComponentsInRuleArea().
|
inline |
Definition at line 63 of file pcbexpr_evaluator.h.
References m_items.
Referenced by DRC_RULE_CONDITION::EvaluateFor(), MULTICHANNEL_TOOL::identifyComponentsInRuleArea(), and testEvalExpr().
|
inlineinherited |
Definition at line 350 of file libeval_compiler.h.
Referenced by LIBEVAL::UCODE::Run().
|
inlineinherited |
Definition at line 328 of file libeval_compiler.h.
Referenced by LIBEVAL::UOP::Exec().
|
private |
Definition at line 76 of file pcbexpr_evaluator.h.
Referenced by GetConstraint().
|
privateinherited |
Definition at line 369 of file libeval_compiler.h.
Referenced by LIBEVAL::CONTEXT::ReportError().
|
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 365 of file libeval_compiler.h.
|
privateinherited |
Definition at line 366 of file libeval_compiler.h.
|
privateinherited |
Definition at line 367 of file libeval_compiler.h.