KiCad PCB EDA Suite
numEval::KIID_PATH Class Reference
Inheritance diagram for numEval::KIID_PATH:

Public Member Functions

 KIID_PATH ()
 
 KIID_PATH (const wxString &aString)
 
wxString AsString () const
 
bool operator== (KIID_PATH const &rhs) const
 
bool operator< (KIID_PATH const &rhs) const
 

Detailed Description

Definition at line 122 of file numeric_evaluator.cpp.

Constructor & Destructor Documentation

◆ KIID_PATH() [1/2]

numEval::KIID_PATH::KIID_PATH ( )
inline

Definition at line 125 of file numeric_evaluator.cpp.

◆ KIID_PATH() [2/2]

numEval::KIID_PATH::KIID_PATH ( const wxString &  aString)
inline

Definition at line 128 of file numeric_evaluator.cpp.

129 {
130  // Feed parser token after token until end of input.
131 
132  newString( aString );
133  m_parseError = false;
134  m_parseFinished = false;
135  Token tok;

Member Function Documentation

◆ AsString()

wxString numEval::KIID_PATH::AsString ( ) const
inline

Definition at line 137 of file numeric_evaluator.cpp.

138  {
139  m_parseFinished = true;
140  return true;
141  }
142 
143  do
144  {
145  tok = getToken();

◆ operator<()

bool numEval::KIID_PATH::operator< ( KIID_PATH const &  rhs) const
inline

Definition at line 161 of file numeric_evaluator.cpp.

161 {
162  Clear();
163 
164  m_originalText = aString;
165 
166  m_token.token = reinterpret_cast<decltype( m_token.token )>( malloc( TokenStat::OutLen + 1 ) );
167  strcpy( m_token.token, "0" );
168  m_token.inputLen = aString.length();
169  m_token.pos = 0;
170  m_token.input = aString.mb_str();
171 
172  m_parseFinished = false;
173 }
174 
175 

◆ operator==()

bool numEval::KIID_PATH::operator== ( KIID_PATH const &  rhs) const
inline

Definition at line 147 of file numeric_evaluator.cpp.

149  {
150  // Reset parser by passing zero as token ID, value is ignored.
151  numEval::Parse( m_parser, 0, tok.value, this );
152  break;
153  }
154  } while( tok.token );
155 
156  return !m_parseError;
157 }
158 
159 
void Parse(void *yyp, int yymajor, ParseTOKENTYPE yyminor ParseARG_PDECL)

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