KiCad PCB EDA Suite
|
#include <libeval_compiler.h>
Public Member Functions | |
VALUE () | |
VALUE (const wxString &aStr, bool aIsWildcard=false) | |
VALUE (const double aVal) | |
virtual | ~VALUE () |
virtual double | AsDouble () const |
virtual const wxString & | AsString () const |
virtual bool | EqualTo (CONTEXT *aCtx, const VALUE *b) const |
virtual bool | NotEqualTo (CONTEXT *aCtx, const VALUE *b) const |
VAR_TYPE_T | GetType () const |
void | Set (double aValue) |
void | SetDeferredEval (std::function< double()> aLambda) |
void | SetDeferredEval (std::function< wxString()> aLambda) |
void | Set (const wxString &aValue) |
void | Set (const VALUE &val) |
Private Attributes | |
VAR_TYPE_T | m_type |
double | m_valueDbl |
wxString | m_valueStr |
bool | m_stringIsWildcard |
bool | m_isDeferredDbl |
std::function< double()> | m_lambdaDbl |
bool | m_isDeferredStr |
std::function< wxString()> | m_lambdaStr |
Definition at line 184 of file libeval_compiler.h.
|
inline |
Definition at line 187 of file libeval_compiler.h.
|
inline |
Definition at line 195 of file libeval_compiler.h.
|
inline |
Definition at line 204 of file libeval_compiler.h.
|
inlinevirtual |
Definition at line 212 of file libeval_compiler.h.
|
inlinevirtual |
Definition at line 215 of file libeval_compiler.h.
References m_isDeferredDbl, m_lambdaDbl, and m_valueDbl.
Referenced by EqualTo(), PCB_EXPR_EVALUATOR::Evaluate(), LIBEVAL::UOP::Exec(), and testEvalExpr().
|
inlinevirtual |
Definition at line 226 of file libeval_compiler.h.
References m_isDeferredStr, m_lambdaStr, and m_valueStr.
Referenced by enclosedByAreaFunc(), EqualTo(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), getFieldFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), and testEvalExpr().
Definition at line 113 of file libeval_compiler.cpp.
References AsDouble(), AsString(), m_stringIsWildcard, m_type, LIBEVAL::VT_NUMERIC, LIBEVAL::VT_STRING, LIBEVAL::VT_UNDEFINED, and WildCompareString().
Referenced by LIBEVAL::UOP::Exec(), NotEqualTo(), and testEvalExpr().
|
inline |
Definition at line 242 of file libeval_compiler.h.
References m_type.
Referenced by PCB_EXPR_EVALUATOR::Evaluate(), LIBEVAL::UOP::Exec(), and testEvalExpr().
Definition at line 134 of file libeval_compiler.cpp.
References EqualTo(), m_type, and LIBEVAL::VT_UNDEFINED.
Referenced by LIBEVAL::UOP::Exec().
|
inline |
Definition at line 270 of file libeval_compiler.h.
References m_type, m_valueDbl, m_valueStr, and LIBEVAL::VT_STRING.
|
inline |
Definition at line 264 of file libeval_compiler.h.
References m_type, m_valueStr, and LIBEVAL::VT_STRING.
|
inline |
Definition at line 244 of file libeval_compiler.h.
References m_type, m_valueDbl, and LIBEVAL::VT_NUMERIC.
Referenced by enclosedByAreaFunc(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), LIBEVAL::COMPILER::generateUCode(), getFieldFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isBlindBuriedViaFunc(), isCoupledDiffPairFunc(), isMicroVia(), isPlatedFunc(), memberOfFootprintFunc(), and memberOfGroupFunc().
|
inline |
Definition at line 250 of file libeval_compiler.h.
References m_isDeferredDbl, m_lambdaDbl, m_type, and LIBEVAL::VT_NUMERIC.
Referenced by enclosedByAreaFunc(), existsOnLayerFunc(), getFieldFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isCoupledDiffPairFunc(), memberOfFootprintFunc(), and memberOfGroupFunc().
|
inline |
Definition at line 257 of file libeval_compiler.h.
References m_isDeferredStr, m_lambdaStr, m_type, and LIBEVAL::VT_STRING.
|
mutableprivate |
Definition at line 285 of file libeval_compiler.h.
Referenced by AsDouble(), and SetDeferredEval().
|
mutableprivate |
Definition at line 288 of file libeval_compiler.h.
Referenced by AsString(), and SetDeferredEval().
|
private |
Definition at line 286 of file libeval_compiler.h.
Referenced by AsDouble(), and SetDeferredEval().
|
private |
Definition at line 289 of file libeval_compiler.h.
Referenced by AsString(), and SetDeferredEval().
|
private |
Definition at line 283 of file libeval_compiler.h.
Referenced by EqualTo().
|
private |
Definition at line 280 of file libeval_compiler.h.
Referenced by EqualTo(), GetType(), NotEqualTo(), Set(), and SetDeferredEval().
|
mutableprivate |
Definition at line 281 of file libeval_compiler.h.
Referenced by AsDouble(), and Set().
|
mutableprivate |
Definition at line 282 of file libeval_compiler.h.
Referenced by AsString(), and Set().