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

#include <pcbexpr_evaluator.h>

Inheritance diagram for PCBEXPR_NETNAME_REF:
PCBEXPR_VAR_REF LIBEVAL::VAR_REF

Public Member Functions

 PCBEXPR_NETNAME_REF (int aItemIndex)
 
LIBEVAL::VALUEGetValue (LIBEVAL::CONTEXT *aCtx) override
 
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)
 
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 144 of file pcbexpr_evaluator.h.

Constructor & Destructor Documentation

◆ PCBEXPR_NETNAME_REF()

PCBEXPR_NETNAME_REF::PCBEXPR_NETNAME_REF ( int  aItemIndex)
inline

Definition at line 147 of file pcbexpr_evaluator.h.

References PCBEXPR_VAR_REF::SetType(), and LIBEVAL::VT_STRING.

Member Function Documentation

◆ AddAllowedClass()

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

Definition at line 99 of file pcbexpr_evaluator.h.

References PCBEXPR_VAR_REF::m_matchingTypes.

◆ GetObject()

◆ GetType()

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

Implements LIBEVAL::VAR_REF.

Definition at line 97 of file pcbexpr_evaluator.h.

References PCBEXPR_VAR_REF::m_type.

◆ GetValue()

LIBEVAL::VALUE * PCBEXPR_NETNAME_REF::GetValue ( LIBEVAL::CONTEXT aCtx)
overridevirtual

Reimplemented from PCBEXPR_VAR_REF.

Definition at line 352 of file pcbexpr_evaluator.cpp.

References PCBEXPR_VAR_REF::GetObject().

◆ IsEnum()

bool PCBEXPR_VAR_REF::IsEnum ( ) const
inlineinherited

Definition at line 94 of file pcbexpr_evaluator.h.

References PCBEXPR_VAR_REF::m_isEnum.

◆ SetIsEnum()

void PCBEXPR_VAR_REF::SetIsEnum ( bool  s)
inlineinherited

Definition at line 93 of file pcbexpr_evaluator.h.

References PCBEXPR_VAR_REF::m_isEnum.

◆ SetType()

Member Data Documentation

◆ m_isEnum

bool PCBEXPR_VAR_REF::m_isEnum
privateinherited

◆ m_itemIndex

int PCBEXPR_VAR_REF::m_itemIndex
privateinherited

Definition at line 110 of file pcbexpr_evaluator.h.

Referenced by PCBEXPR_VAR_REF::GetObject(), and PCBEXPR_VAR_REF::GetValue().

◆ m_matchingTypes

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

◆ m_type

LIBEVAL::VAR_TYPE_T PCBEXPR_VAR_REF::m_type
privateinherited

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