KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PCBEXPR_NETCLASS_VALUE Class Reference
Inheritance diagram for PCBEXPR_NETCLASS_VALUE:
LIBEVAL::VALUE

Public Member Functions

 PCBEXPR_NETCLASS_VALUE (BOARD_CONNECTED_ITEM *aItem)
 
const wxString & AsString () const override
 
bool EqualTo (LIBEVAL::CONTEXT *aCtx, const VALUE *b) const override
 
bool NotEqualTo (LIBEVAL::CONTEXT *aCtx, const LIBEVAL::VALUE *b) const override
 
virtual double AsDouble () const
 
virtual bool EqualTo (CONTEXT *aCtx, const VALUE *b) const
 
VAR_TYPE_T GetType () const
 
void Set (double aValue)
 
void Set (const wxString &aValue)
 
void Set (const VALUE &val)
 
void SetDeferredEval (std::function< double()> aLambda)
 
void SetDeferredEval (std::function< wxString()> aLambda)
 

Protected Attributes

BOARD_CONNECTED_ITEMm_item
 

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
 

Detailed Description

Definition at line 132 of file pcbexpr_evaluator.cpp.

Constructor & Destructor Documentation

◆ PCBEXPR_NETCLASS_VALUE()

PCBEXPR_NETCLASS_VALUE::PCBEXPR_NETCLASS_VALUE ( BOARD_CONNECTED_ITEM aItem)
inline

Definition at line 135 of file pcbexpr_evaluator.cpp.

Member Function Documentation

◆ AsDouble()

virtual double LIBEVAL::VALUE::AsDouble ( ) const
inlinevirtualinherited

◆ AsString()

const wxString & PCBEXPR_NETCLASS_VALUE::AsString ( ) const
inlineoverridevirtual

◆ EqualTo() [1/2]

◆ EqualTo() [2/2]

bool PCBEXPR_NETCLASS_VALUE::EqualTo ( LIBEVAL::CONTEXT aCtx,
const VALUE b 
) const
inlineoverride

◆ GetType()

VAR_TYPE_T LIBEVAL::VALUE::GetType ( ) const
inlineinherited

◆ NotEqualTo()

bool PCBEXPR_NETCLASS_VALUE::NotEqualTo ( LIBEVAL::CONTEXT aCtx,
const LIBEVAL::VALUE b 
) const
inlineoverridevirtual

◆ Set() [1/3]

void LIBEVAL::VALUE::Set ( const VALUE val)
inlineinherited

◆ Set() [2/3]

void LIBEVAL::VALUE::Set ( const wxString &  aValue)
inlineinherited

Definition at line 265 of file libeval_compiler.h.

References LIBEVAL::VT_STRING.

◆ Set() [3/3]

◆ SetDeferredEval() [1/2]

◆ SetDeferredEval() [2/2]

void LIBEVAL::VALUE::SetDeferredEval ( std::function< wxString()>  aLambda)
inlineinherited

Definition at line 258 of file libeval_compiler.h.

References LIBEVAL::VT_STRING.

Member Data Documentation

◆ m_isDeferredDbl

bool LIBEVAL::VALUE::m_isDeferredDbl
mutableprivateinherited

Definition at line 286 of file libeval_compiler.h.

◆ m_isDeferredStr

bool LIBEVAL::VALUE::m_isDeferredStr
mutableprivateinherited

Definition at line 289 of file libeval_compiler.h.

◆ m_item

BOARD_CONNECTED_ITEM* PCBEXPR_NETCLASS_VALUE::m_item
protected

Definition at line 165 of file pcbexpr_evaluator.cpp.

Referenced by AsString(), EqualTo(), and NotEqualTo().

◆ m_lambdaDbl

std::function<double()> LIBEVAL::VALUE::m_lambdaDbl
privateinherited

Definition at line 287 of file libeval_compiler.h.

◆ m_lambdaStr

std::function<wxString()> LIBEVAL::VALUE::m_lambdaStr
privateinherited

Definition at line 290 of file libeval_compiler.h.

◆ m_stringIsWildcard

bool LIBEVAL::VALUE::m_stringIsWildcard
privateinherited

Definition at line 284 of file libeval_compiler.h.

Referenced by LIBEVAL::VALUE::EqualTo().

◆ m_type

VAR_TYPE_T LIBEVAL::VALUE::m_type
privateinherited

◆ m_valueDbl

double LIBEVAL::VALUE::m_valueDbl
mutableprivateinherited

Definition at line 282 of file libeval_compiler.h.

Referenced by LIBEVAL::VALUE::Set().

◆ m_valueStr

wxString LIBEVAL::VALUE::m_valueStr
mutableprivateinherited

Definition at line 283 of file libeval_compiler.h.

Referenced by LIBEVAL::VALUE::Set().


The documentation for this class was generated from the following file: