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

Public Member Functions

 PCBEXPR_PINTYPE_VALUE (const wxString &aPinTypeName)
 
bool EqualTo (LIBEVAL::CONTEXT *aCtx, const VALUE *b) const override
 
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 Set (const wxString &aValue)
 
void Set (const VALUE &val)
 
void SetDeferredEval (std::function< double()> aLambda)
 
void SetDeferredEval (std::function< wxString()> aLambda)
 

Static Public Member Functions

static VALUEMakeNullValue ()
 

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 99 of file pcbexpr_evaluator.cpp.

Constructor & Destructor Documentation

◆ PCBEXPR_PINTYPE_VALUE()

PCBEXPR_PINTYPE_VALUE::PCBEXPR_PINTYPE_VALUE ( const wxString &  aPinTypeName)
inline

Definition at line 102 of file pcbexpr_evaluator.cpp.

Member Function Documentation

◆ AsDouble()

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

◆ AsString()

◆ EqualTo() [1/2]

◆ EqualTo() [2/2]

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

Definition at line 106 of file pcbexpr_evaluator.cpp.

References LIBEVAL::VALUE::AsString().

◆ GetType()

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

◆ MakeNullValue()

static VALUE * LIBEVAL::VALUE::MakeNullValue ( )
inlinestaticinherited

Definition at line 214 of file libeval_compiler.h.

References LIBEVAL::VALUE::m_type, and LIBEVAL::VT_NULL.

Referenced by PCBEXPR_VAR_REF::GetValue().

◆ NotEqualTo()

◆ 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 273 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 266 of file libeval_compiler.h.

References LIBEVAL::VT_STRING.

Member Data Documentation

◆ m_isDeferredDbl

bool LIBEVAL::VALUE::m_isDeferredDbl
mutableprivateinherited

Definition at line 294 of file libeval_compiler.h.

◆ m_isDeferredStr

bool LIBEVAL::VALUE::m_isDeferredStr
mutableprivateinherited

Definition at line 297 of file libeval_compiler.h.

◆ m_lambdaDbl

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

Definition at line 295 of file libeval_compiler.h.

◆ m_lambdaStr

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

Definition at line 298 of file libeval_compiler.h.

◆ m_stringIsWildcard

bool LIBEVAL::VALUE::m_stringIsWildcard
privateinherited

Definition at line 292 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 290 of file libeval_compiler.h.

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

◆ m_valueStr

wxString LIBEVAL::VALUE::m_valueStr
mutableprivateinherited

Definition at line 291 of file libeval_compiler.h.

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


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