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_COMPONENT_CLASS_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 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::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
 
bool m_isOptional
 

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 92 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 103 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 101 of file pcbexpr_evaluator.h.

References m_type.

◆ GetValue()

◆ IsEnum()

bool PCBEXPR_VAR_REF::IsEnum ( ) const
inline

Definition at line 95 of file pcbexpr_evaluator.h.

References m_isEnum.

◆ IsOptional()

bool PCBEXPR_VAR_REF::IsOptional ( ) const
inline

Definition at line 98 of file pcbexpr_evaluator.h.

References m_isOptional.

◆ SetIsEnum()

void PCBEXPR_VAR_REF::SetIsEnum ( bool  s)
inline

Definition at line 94 of file pcbexpr_evaluator.h.

References m_isEnum.

◆ SetIsOptional()

void PCBEXPR_VAR_REF::SetIsOptional ( bool  s = true)
inline

Definition at line 97 of file pcbexpr_evaluator.h.

References m_isOptional.

◆ SetType()

Member Data Documentation

◆ m_isEnum

bool PCBEXPR_VAR_REF::m_isEnum
private

Definition at line 116 of file pcbexpr_evaluator.h.

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

◆ m_isOptional

bool PCBEXPR_VAR_REF::m_isOptional
private

Definition at line 117 of file pcbexpr_evaluator.h.

Referenced by GetValue(), IsOptional(), and SetIsOptional().

◆ m_itemIndex

int PCBEXPR_VAR_REF::m_itemIndex
private

Definition at line 114 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 113 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 115 of file pcbexpr_evaluator.h.

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


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