|
KiCad PCB EDA Suite
|
#include <text_eval_types.h>
Public Member Functions | |
| RESULT (T aValue) | |
| RESULT (std::string aError) | |
| bool | HasValue () const |
| bool | HasError () const |
| const T & | GetValue () const |
| const std::string & | GetError () const |
| operator bool () const | |
Private Attributes | |
| std::variant< T, std::string > | m_data |
Definition at line 32 of file text_eval_types.h.
|
inline |
Definition at line 35 of file text_eval_types.h.
|
inline |
Definition at line 36 of file text_eval_types.h.
|
inline |
Definition at line 42 of file text_eval_types.h.
References m_data.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inline |
Definition at line 41 of file text_eval_types.h.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction(), and calc_parser::DOC_PROCESSOR::Process().
|
inline |
Definition at line 39 of file text_eval_types.h.
References m_data.
|
inline |
|
inlineexplicit |
Definition at line 44 of file text_eval_types.h.
References HasValue().
|
private |
Definition at line 47 of file text_eval_types.h.
Referenced by GetError(), GetValue(), HasError(), HasValue(), RESULT(), and RESULT().