KiCad PCB EDA Suite
|
#include <pcbexpr_evaluator.h>
Public Member Functions | |
PCBEXPR_VAR_REF (int aItemIndex) | |
~PCBEXPR_VAR_REF () | |
void | SetIsEnum (bool s) |
bool | IsEnum () const |
void | SetIsOptional (bool s=true) |
bool | IsOptional () const |
void | SetType (LIBEVAL::VAR_TYPE_T type) |
LIBEVAL::VAR_TYPE_T | GetType () const override |
void | AddAllowedClass (TYPE_ID type_hash, PROPERTY_BASE *prop) |
LIBEVAL::VALUE * | GetValue (LIBEVAL::CONTEXT *aCtx) override |
BOARD_ITEM * | GetObject (const LIBEVAL::CONTEXT *aCtx) const |
Private Attributes | |
std::unordered_map< TYPE_ID, PROPERTY_BASE * > | m_matchingTypes |
int | m_itemIndex |
LIBEVAL::VAR_TYPE_T | m_type |
bool | m_isEnum |
bool | m_isOptional |
Definition at line 82 of file pcbexpr_evaluator.h.
|
inline |
Definition at line 85 of file pcbexpr_evaluator.h.
|
inline |
Definition at line 92 of file pcbexpr_evaluator.h.
|
inline |
Definition at line 103 of file pcbexpr_evaluator.h.
References m_matchingTypes.
BOARD_ITEM * PCBEXPR_VAR_REF::GetObject | ( | const LIBEVAL::CONTEXT * | aCtx | ) | const |
Definition at line 39 of file pcbexpr_evaluator.cpp.
References PCBEXPR_CONTEXT::GetItem(), and m_itemIndex.
Referenced by enclosedByAreaFunc(), existsOnLayerFunc(), fromToFunc(), getFieldFunc(), GetValue(), PCBEXPR_NETCLASS_REF::GetValue(), PCBEXPR_COMPONENT_CLASS_REF::GetValue(), PCBEXPR_NETNAME_REF::GetValue(), PCBEXPR_TYPE_REF::GetValue(), hasComponentClassFunc(), hasNetclassFunc(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isBlindBuriedViaFunc(), isMicroVia(), isPlatedFunc(), memberOfFootprintFunc(), memberOfGroupFunc(), and memberOfSheetFunc().
|
inlineoverridevirtual |
|
overridevirtual |
Implements LIBEVAL::VAR_REF.
Reimplemented in PCBEXPR_NETCLASS_REF, PCBEXPR_COMPONENT_CLASS_REF, PCBEXPR_NETNAME_REF, and PCBEXPR_TYPE_REF.
Definition at line 271 of file pcbexpr_evaluator.cpp.
References INSPECTABLE::Get(), PCBEXPR_CONTEXT::GetBoard(), PCBEXPR_CONTEXT::GetLayer(), BOARD::GetLayerID(), GetObject(), m_isEnum, m_isOptional, m_itemIndex, m_matchingTypes, m_type, LIBEVAL::VALUE::MakeNullValue(), TYPE_HASH, LIBEVAL::VT_NULL, and LIBEVAL::VT_NUMERIC.
|
inline |
Definition at line 95 of file pcbexpr_evaluator.h.
References m_isEnum.
|
inline |
Definition at line 98 of file pcbexpr_evaluator.h.
References m_isOptional.
|
inline |
Definition at line 94 of file pcbexpr_evaluator.h.
References m_isEnum.
|
inline |
Definition at line 97 of file pcbexpr_evaluator.h.
References m_isOptional.
|
inline |
Definition at line 100 of file pcbexpr_evaluator.h.
References m_type.
Referenced by PCBEXPR_COMPONENT_CLASS_REF::PCBEXPR_COMPONENT_CLASS_REF(), PCBEXPR_NETCLASS_REF::PCBEXPR_NETCLASS_REF(), PCBEXPR_NETNAME_REF::PCBEXPR_NETNAME_REF(), and PCBEXPR_TYPE_REF::PCBEXPR_TYPE_REF().
|
private |
Definition at line 116 of file pcbexpr_evaluator.h.
Referenced by GetValue(), IsEnum(), and SetIsEnum().
|
private |
Definition at line 117 of file pcbexpr_evaluator.h.
Referenced by GetValue(), IsOptional(), and SetIsOptional().
|
private |
Definition at line 114 of file pcbexpr_evaluator.h.
Referenced by GetObject(), and GetValue().
|
private |
Definition at line 113 of file pcbexpr_evaluator.h.
Referenced by AddAllowedClass(), and GetValue().
|
private |
Definition at line 115 of file pcbexpr_evaluator.h.
Referenced by GetType(), GetValue(), and SetType().