KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PCBEXPR_VAR_REF Class Reference

#include <pcbexpr_evaluator.h>

Inheritance diagram for PCBEXPR_VAR_REF:
LIBEVAL::VAR_REF PCBEXPR_NETCLASS_REF PCBEXPR_NETNAME_REF PCBEXPR_TYPE_REF

Public Member Functions

 PCBEXPR_VAR_REF (int aItemIndex)
 
 ~PCBEXPR_VAR_REF ()
 
void SetIsEnum (bool s)
 
bool IsEnum () 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::VALUEGetValue (LIBEVAL::CONTEXT *aCtx) override
 
BOARD_ITEMGetObject (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
 

Detailed Description

Definition at line 82 of file pcbexpr_evaluator.h.

Constructor & Destructor Documentation

◆ PCBEXPR_VAR_REF()

PCBEXPR_VAR_REF::PCBEXPR_VAR_REF ( int  aItemIndex)
inline

Definition at line 85 of file pcbexpr_evaluator.h.

◆ ~PCBEXPR_VAR_REF()

PCBEXPR_VAR_REF::~PCBEXPR_VAR_REF ( )
inline

Definition at line 91 of file pcbexpr_evaluator.h.

Member Function Documentation

◆ AddAllowedClass()

void PCBEXPR_VAR_REF::AddAllowedClass ( TYPE_ID  type_hash,
PROPERTY_BASE prop 
)
inline

Definition at line 99 of file pcbexpr_evaluator.h.

References m_matchingTypes.

◆ GetObject()

◆ GetType()

LIBEVAL::VAR_TYPE_T PCBEXPR_VAR_REF::GetType ( ) const
inlineoverridevirtual

Implements LIBEVAL::VAR_REF.

Definition at line 97 of file pcbexpr_evaluator.h.

References m_type.

◆ GetValue()

◆ IsEnum()

bool PCBEXPR_VAR_REF::IsEnum ( ) const
inline

Definition at line 94 of file pcbexpr_evaluator.h.

References m_isEnum.

◆ SetIsEnum()

void PCBEXPR_VAR_REF::SetIsEnum ( bool  s)
inline

Definition at line 93 of file pcbexpr_evaluator.h.

References m_isEnum.

◆ SetType()

void PCBEXPR_VAR_REF::SetType ( LIBEVAL::VAR_TYPE_T  type)
inline

Member Data Documentation

◆ m_isEnum

bool PCBEXPR_VAR_REF::m_isEnum
private

Definition at line 112 of file pcbexpr_evaluator.h.

Referenced by GetValue(), IsEnum(), and SetIsEnum().

◆ m_itemIndex

int PCBEXPR_VAR_REF::m_itemIndex
private

Definition at line 110 of file pcbexpr_evaluator.h.

Referenced by GetObject(), and GetValue().

◆ m_matchingTypes

std::unordered_map<TYPE_ID, PROPERTY_BASE*> PCBEXPR_VAR_REF::m_matchingTypes
private

Definition at line 109 of file pcbexpr_evaluator.h.

Referenced by AddAllowedClass(), and GetValue().

◆ m_type

LIBEVAL::VAR_TYPE_T PCBEXPR_VAR_REF::m_type
private

Definition at line 111 of file pcbexpr_evaluator.h.

Referenced by GetType(), GetValue(), and SetType().


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