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 ()=default |
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) |
void | SetUnits (const EDA_UNITS aUnits) |
EDA_UNITS | GetUnits () const |
bool | StringIsWildcard () const |
Static Public Member Functions | |
static VALUE * | MakeNullValue () |
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 |
EDA_UNITS | m_units |
Definition at line 194 of file libeval_compiler.h.
|
inline |
Definition at line 197 of file libeval_compiler.h.
References m_isDeferredDbl, m_isDeferredStr, m_stringIsWildcard, m_type, m_units, m_valueDbl, UNSCALED, and LIBEVAL::VT_UNDEFINED.
Referenced by EqualTo(), PCBEXPR_COMPONENT_CLASS_VALUE::EqualTo(), PCBEXPR_LAYER_VALUE::EqualTo(), PCBEXPR_NET_VALUE::EqualTo(), PCBEXPR_NETCLASS_VALUE::EqualTo(), PCBEXPR_PINTYPE_VALUE::EqualTo(), MakeNullValue(), NotEqualTo(), PCBEXPR_COMPONENT_CLASS_VALUE::PCBEXPR_COMPONENT_CLASS_VALUE(), PCBEXPR_LAYER_VALUE::PCBEXPR_LAYER_VALUE(), PCBEXPR_NET_VALUE::PCBEXPR_NET_VALUE(), PCBEXPR_NETCLASS_VALUE::PCBEXPR_NETCLASS_VALUE(), PCBEXPR_PINTYPE_VALUE::PCBEXPR_PINTYPE_VALUE(), and Set().
|
inline |
Definition at line 206 of file libeval_compiler.h.
References m_isDeferredDbl, m_isDeferredStr, m_stringIsWildcard, m_type, m_units, m_valueDbl, m_valueStr, UNSCALED, and LIBEVAL::VT_STRING.
|
inline |
Definition at line 216 of file libeval_compiler.h.
References m_isDeferredDbl, m_isDeferredStr, m_stringIsWildcard, m_type, m_units, m_valueDbl, UNSCALED, and LIBEVAL::VT_NUMERIC.
|
virtualdefault |
|
inlinevirtual |
Definition at line 234 of file libeval_compiler.h.
References m_isDeferredDbl, m_lambdaDbl, and m_valueDbl.
Referenced by EqualTo(), LIBEVAL::UOP::Exec(), MULTICHANNEL_TOOL::findComponentsInRuleArea(), MULTICHANNEL_TOOL::findOtherItemsInRuleArea(), MULTICHANNEL_TOOL::findRoutingInRuleArea(), and testEvalExpr().
|
inlinevirtual |
Reimplemented in PCBEXPR_COMPONENT_CLASS_VALUE, PCBEXPR_NET_VALUE, and PCBEXPR_NETCLASS_VALUE.
Definition at line 245 of file libeval_compiler.h.
References m_isDeferredStr, m_lambdaStr, and m_valueStr.
Referenced by PCBEXPR_COMPONENT_CLASS_VALUE::AsString(), PCBEXPR_NET_VALUE::AsString(), PCBEXPR_NETCLASS_VALUE::AsString(), enclosedByAreaFunc(), EqualTo(), PCBEXPR_PINTYPE_VALUE::EqualTo(), LIBEVAL::UOP::Exec(), existsOnLayerFunc(), fromToFunc(), getFieldFunc(), hasComponentClassFunc(), hasExactNetclassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), memberOfSheetFunc(), memberOfSheetOrChildrenFunc(), PCBEXPR_COMPONENT_CLASS_VALUE::NotEqualTo(), PCBEXPR_NETCLASS_VALUE::NotEqualTo(), and testEvalExpr().
Definition at line 122 of file libeval_compiler.cpp.
References AsDouble(), AsString(), m_stringIsWildcard, m_type, VALUE(), LIBEVAL::VT_NULL, LIBEVAL::VT_NUMERIC, LIBEVAL::VT_STRING, LIBEVAL::VT_UNDEFINED, and WildCompareString().
Referenced by PCBEXPR_COMPONENT_CLASS_VALUE::EqualTo(), PCBEXPR_NET_VALUE::EqualTo(), PCBEXPR_NETCLASS_VALUE::EqualTo(), LIBEVAL::UOP::Exec(), NotEqualTo(), PCBEXPR_COMPONENT_CLASS_VALUE::NotEqualTo(), and PCBEXPR_NETCLASS_VALUE::NotEqualTo().
|
inline |
Definition at line 261 of file libeval_compiler.h.
References m_type.
Referenced by LIBEVAL::UOP::Exec(), PCBEXPR_COMPONENT_CLASS_VALUE::NotEqualTo(), PCBEXPR_NETCLASS_VALUE::NotEqualTo(), and testEvalExpr().
|
inline |
Definition at line 300 of file libeval_compiler.h.
References m_units.
Referenced by LIBEVAL::UOP::Exec().
|
inlinestatic |
Definition at line 225 of file libeval_compiler.h.
References m_type, VALUE, VALUE(), and LIBEVAL::VT_NULL.
Referenced by PCBEXPR_VAR_REF::GetValue().
Reimplemented in PCBEXPR_COMPONENT_CLASS_VALUE, PCBEXPR_NET_VALUE, and PCBEXPR_NETCLASS_VALUE.
Definition at line 146 of file libeval_compiler.cpp.
References EqualTo(), m_type, VALUE(), and LIBEVAL::VT_UNDEFINED.
Referenced by LIBEVAL::UOP::Exec(), PCBEXPR_COMPONENT_CLASS_VALUE::NotEqualTo(), PCBEXPR_NET_VALUE::NotEqualTo(), and PCBEXPR_NETCLASS_VALUE::NotEqualTo().
|
inline |
Definition at line 289 of file libeval_compiler.h.
References m_type, m_valueDbl, m_valueStr, VALUE(), and LIBEVAL::VT_STRING.
|
inline |
Definition at line 283 of file libeval_compiler.h.
References m_type, m_valueStr, and LIBEVAL::VT_STRING.
|
inline |
Definition at line 263 of file libeval_compiler.h.
References m_type, m_valueDbl, and LIBEVAL::VT_NUMERIC.
Referenced by PCBEXPR_COMPONENT_CLASS_VALUE::AsString(), PCBEXPR_NET_VALUE::AsString(), PCBEXPR_NETCLASS_VALUE::AsString(), LIBEVAL::UOP::Exec(), and LIBEVAL::COMPILER::generateUCode().
|
inline |
Definition at line 269 of file libeval_compiler.h.
References m_isDeferredDbl, m_lambdaDbl, m_type, and LIBEVAL::VT_NUMERIC.
|
inline |
Definition at line 276 of file libeval_compiler.h.
References m_isDeferredStr, m_lambdaStr, m_type, and LIBEVAL::VT_STRING.
|
inline |
Definition at line 298 of file libeval_compiler.h.
References m_units.
Referenced by LIBEVAL::UOP::Exec().
|
inline |
Definition at line 302 of file libeval_compiler.h.
References m_stringIsWildcard.
Referenced by PCBEXPR_COMPONENT_CLASS_VALUE::NotEqualTo(), and PCBEXPR_NETCLASS_VALUE::NotEqualTo().
|
mutableprivate |
Definition at line 310 of file libeval_compiler.h.
Referenced by AsDouble(), SetDeferredEval(), VALUE(), VALUE(), and VALUE().
|
mutableprivate |
Definition at line 313 of file libeval_compiler.h.
Referenced by AsString(), SetDeferredEval(), VALUE(), VALUE(), and VALUE().
|
private |
Definition at line 311 of file libeval_compiler.h.
Referenced by AsDouble(), and SetDeferredEval().
|
private |
Definition at line 314 of file libeval_compiler.h.
Referenced by AsString(), and SetDeferredEval().
|
private |
Definition at line 308 of file libeval_compiler.h.
Referenced by EqualTo(), StringIsWildcard(), VALUE(), VALUE(), and VALUE().
|
private |
Definition at line 305 of file libeval_compiler.h.
Referenced by EqualTo(), GetType(), MakeNullValue(), NotEqualTo(), Set(), Set(), Set(), SetDeferredEval(), SetDeferredEval(), VALUE(), VALUE(), and VALUE().
|
private |
Definition at line 316 of file libeval_compiler.h.
Referenced by GetUnits(), SetUnits(), VALUE(), VALUE(), and VALUE().
|
mutableprivate |
Definition at line 306 of file libeval_compiler.h.
Referenced by AsDouble(), Set(), Set(), VALUE(), VALUE(), and VALUE().
|
mutableprivate |
Definition at line 307 of file libeval_compiler.h.
Referenced by AsString(), Set(), Set(), and VALUE().