#include <pcb_expr_evaluator.h>
Definition at line 82 of file pcb_expr_evaluator.h.
◆ PCB_EXPR_VAR_REF()
PCB_EXPR_VAR_REF::PCB_EXPR_VAR_REF |
( |
int |
aItemIndex | ) |
|
|
inline |
◆ ~PCB_EXPR_VAR_REF()
PCB_EXPR_VAR_REF::~PCB_EXPR_VAR_REF |
( |
| ) |
|
|
inline |
◆ AddAllowedClass()
◆ GetObject()
Definition at line 36 of file pcb_expr_evaluator.cpp.
37{
39
42 return item;
43}
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
BOARD_ITEM * GetItem(int index) const
References PCB_EXPR_CONTEXT::GetItem(), and m_itemIndex.
Referenced by enclosedByAreaFunc(), existsOnLayerFunc(), fromToFunc(), getFieldFunc(), GetValue(), PCB_EXPR_NETCLASS_REF::GetValue(), PCB_EXPR_NETNAME_REF::GetValue(), PCB_EXPR_TYPE_REF::GetValue(), inDiffPairFunc(), intersectsAreaFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), isBlindBuriedViaFunc(), isMicroVia(), isPlatedFunc(), and memberOfFunc().
◆ GetType()
◆ GetValue()
Implements LIBEVAL::VAR_REF.
Reimplemented in PCB_EXPR_NETCLASS_REF, PCB_EXPR_NETNAME_REF, and PCB_EXPR_TYPE_REF.
Definition at line 92 of file pcb_expr_evaluator.cpp.
93{
95
98
100
101 if( !item )
103
105
107 {
108
109
110
111
113 }
114 else
115 {
118 else
119 {
120 wxString str;
121
123 {
124 str = item->
Get<wxString>( it->second );
126 }
127 else
128 {
129 const wxAny& any = item->
Get( it->second );
130 bool valid = any.GetAs<wxString>( &str );
131
132 if( valid )
133 {
134 if( it->second->Name() == wxT( "Layer" ) )
136 else
138 }
139 }
140
142 }
143 }
144}
const PCB_LAYER_ID GetLayerID(const wxString &aLayerName) const
Return the ID of a layer.
wxAny Get(PROPERTY_BASE *aProperty) const
PCB_LAYER_ID GetLayer() const
BOARD_ITEM * GetObject(const LIBEVAL::CONTEXT *aCtx) const
References INSPECTABLE::Get(), PCB_EXPR_CONTEXT::GetBoard(), PCB_EXPR_CONTEXT::GetLayer(), BOARD::GetLayerID(), GetObject(), m_isEnum, m_itemIndex, m_matchingTypes, m_type, TYPE_HASH, and LIBEVAL::VT_NUMERIC.
◆ IsEnum()
bool PCB_EXPR_VAR_REF::IsEnum |
( |
| ) |
const |
|
inline |
◆ SetIsEnum()
void PCB_EXPR_VAR_REF::SetIsEnum |
( |
bool |
s | ) |
|
|
inline |
◆ SetType()
◆ m_isEnum
bool PCB_EXPR_VAR_REF::m_isEnum |
|
private |
◆ m_itemIndex
int PCB_EXPR_VAR_REF::m_itemIndex |
|
private |
◆ m_matchingTypes
◆ m_type
The documentation for this class was generated from the following files: