| 
    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 54 of file pcbexpr_evaluator.h.
      
  | 
  inline | 
Definition at line 57 of file pcbexpr_evaluator.h.
References F_Cu, m_constraint, m_items, and m_layer.
      
  | 
  inlineinherited | 
Definition at line 353 of file libeval_compiler.h.
References m_ownedValues.
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), hasComponentClassFunc(), hasExactNetclassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isBlindBuriedViaFunc(), isBlindVia(), isBuriedVia(), isCoupledDiffPairFunc(), isMicroVia(), isPlatedFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), memberOfSheetOrChildrenFunc(), and Pop().
| BOARD * PCBEXPR_CONTEXT::GetBoard | ( | ) | const | 
Definition at line 664 of file pcbexpr_evaluator.cpp.
References m_items.
Referenced by PCBEXPR_VAR_REF::GetValue().
      
  | 
  inline | 
Definition at line 73 of file pcbexpr_evaluator.h.
References m_constraint.
Referenced by isCoupledDiffPairFunc().
      
  | 
  inline | 
Definition at line 74 of file pcbexpr_evaluator.h.
References m_items.
Referenced by PCBEXPR_VAR_REF::GetObject(), isCoupledDiffPairFunc(), searchAreas(), and searchFootprints().
      
  | 
  inline | 
Definition at line 75 of file pcbexpr_evaluator.h.
References m_layer.
Referenced by collidesWithArea(), collidesWithCourtyard(), enclosedByAreaFunc(), PCBEXPR_VAR_REF::GetValue(), and intersectsAreaFunc().
      
  | 
  inlineinherited | 
Definition at line 391 of file libeval_compiler.h.
References m_errorCallback.
Referenced by collidesWithArea(), enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), getFieldFunc(), hasComponentClassFunc(), hasExactNetclassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), and memberOfSheetOrChildrenFunc().
      
  | 
  inlineinherited | 
Definition at line 370 of file libeval_compiler.h.
References _, AllocValue(), m_stack, m_stackPtr, and ReportError().
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), hasComponentClassFunc(), hasExactNetclassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), memberOfSheetOrChildrenFunc(), and LIBEVAL::UCODE::Run().
      
  | 
  inlineinherited | 
Definition at line 365 of file libeval_compiler.h.
References m_stack, and m_stackPtr.
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), hasComponentClassFunc(), hasExactNetclassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isBlindBuriedViaFunc(), isBlindVia(), isBuriedVia(), isCoupledDiffPairFunc(), isMicroVia(), isPlatedFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), and memberOfSheetOrChildrenFunc().
      
  | 
  inherited | 
Definition at line 692 of file libeval_compiler.cpp.
References m_errorCallback.
Referenced by collidesWithArea(), enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), getFieldFunc(), hasComponentClassFunc(), hasExactNetclassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), memberOfSheetOrChildrenFunc(), and Pop().
      
  | 
  inlineinherited | 
Definition at line 386 of file libeval_compiler.h.
References m_errorCallback.
Referenced by DRC_RULE_CONDITION::EvaluateFor(), MULTICHANNEL_TOOL::findComponentsInRuleArea(), MULTICHANNEL_TOOL::findOtherItemsInRuleArea(), MULTICHANNEL_TOOL::findRoutingInRuleArea(), and LIBEVAL::COMPILER::generateUCode().
      
  | 
  inline | 
Definition at line 65 of file pcbexpr_evaluator.h.
References m_items.
Referenced by DRC_RULE_CONDITION::EvaluateFor(), MULTICHANNEL_TOOL::findComponentsInRuleArea(), MULTICHANNEL_TOOL::findOtherItemsInRuleArea(), MULTICHANNEL_TOOL::findRoutingInRuleArea(), testEvalExpr(), and testEvalExpr().
      
  | 
  inlineinherited | 
Definition at line 381 of file libeval_compiler.h.
References m_stackPtr.
Referenced by LIBEVAL::UCODE::Run().
Definition at line 359 of file libeval_compiler.h.
References m_ownedValues.
Referenced by LIBEVAL::UOP::Exec(), and LIBEVAL::UCODE::Run().
      
  | 
  private | 
Definition at line 78 of file pcbexpr_evaluator.h.
Referenced by GetConstraint(), and PCBEXPR_CONTEXT().
      
  | 
  privateinherited | 
Definition at line 400 of file libeval_compiler.h.
Referenced by HasErrorCallback(), ReportError(), and SetErrorCallback().
      
  | 
  private | 
Definition at line 79 of file pcbexpr_evaluator.h.
Referenced by GetBoard(), GetItem(), PCBEXPR_CONTEXT(), and SetItems().
      
  | 
  private | 
Definition at line 80 of file pcbexpr_evaluator.h.
Referenced by GetLayer(), and PCBEXPR_CONTEXT().
      
  | 
  privateinherited | 
Definition at line 396 of file libeval_compiler.h.
Referenced by AllocValue(), CONTEXT(), StoreValue(), and ~CONTEXT().
      
  | 
  privateinherited | 
Definition at line 397 of file libeval_compiler.h.
      
  | 
  privateinherited |