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

This helper class hold a value or an arithmetic operator to calculate the final value of a aperture macro parameter, using usual arithmetic operator precedence Only operators ADD, SUB, MUL, DIV, OPEN_PAR, CLOSE_PAR have meaning when calculating a value. More...

#include <am_param.h>

Public Member Functions

 AM_PARAM_EVAL (parm_item_type aType)
 
 AM_PARAM_EVAL (double aValue)
 
parm_item_type GetType () const
 
bool IsOperator () const
 
double GetValue () const
 
parm_item_type GetOperator () const
 
int GetPriority () const
 

Static Public Member Functions

static int GetPriority (parm_item_type aType)
 

Private Attributes

parm_item_type m_type
 
double m_dvalue
 

Detailed Description

This helper class hold a value or an arithmetic operator to calculate the final value of a aperture macro parameter, using usual arithmetic operator precedence Only operators ADD, SUB, MUL, DIV, OPEN_PAR, CLOSE_PAR have meaning when calculating a value.

Definition at line 160 of file am_param.h.

Constructor & Destructor Documentation

◆ AM_PARAM_EVAL() [1/2]

AM_PARAM_EVAL::AM_PARAM_EVAL ( parm_item_type  aType)
inline

Definition at line 163 of file am_param.h.

◆ AM_PARAM_EVAL() [2/2]

AM_PARAM_EVAL::AM_PARAM_EVAL ( double  aValue)
inline

Definition at line 167 of file am_param.h.

Member Function Documentation

◆ GetOperator()

parm_item_type AM_PARAM_EVAL::GetOperator ( ) const
inline

Definition at line 178 of file am_param.h.

References m_type.

Referenced by Evaluate(), and GetPriority().

◆ GetPriority() [1/2]

int AM_PARAM_EVAL::GetPriority ( ) const
inline

Definition at line 179 of file am_param.h.

References GetOperator(), and GetPriority().

Referenced by Evaluate(), and GetPriority().

◆ GetPriority() [2/2]

static int AM_PARAM_EVAL::GetPriority ( parm_item_type  aType)
inlinestatic

Definition at line 181 of file am_param.h.

References ADD, CLOSE_PAR, DIV, MUL, OPEN_PAR, and SUB.

◆ GetType()

parm_item_type AM_PARAM_EVAL::GetType ( ) const
inline

Definition at line 171 of file am_param.h.

References m_type.

◆ GetValue()

double AM_PARAM_EVAL::GetValue ( ) const
inline

Definition at line 177 of file am_param.h.

References m_dvalue.

Referenced by Evaluate().

◆ IsOperator()

bool AM_PARAM_EVAL::IsOperator ( ) const
inline

Definition at line 176 of file am_param.h.

References m_type, and NOP.

Referenced by Evaluate().

Member Data Documentation

◆ m_dvalue

double AM_PARAM_EVAL::m_dvalue
private

Definition at line 206 of file am_param.h.

Referenced by GetValue().

◆ m_type

parm_item_type AM_PARAM_EVAL::m_type
private

Definition at line 205 of file am_param.h.

Referenced by GetOperator(), GetType(), and IsOperator().


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