KiCad PCB EDA Suite
|
#include <text_eval_types.h>
Public Member Functions | |
Result (T aValue) | |
Result (std::string aError) | |
auto | HasValue () const -> bool |
auto | HasError () const -> bool |
auto | GetValue () const -> const T & |
auto | GetError () const -> const std::string & |
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 38 of file text_eval_types.h.
|
inline |
Definition at line 39 of file text_eval_types.h.
|
inline |
Definition at line 45 of file text_eval_types.h.
References m_data.
|
inline |
Definition at line 44 of file text_eval_types.h.
|
inline |
Definition at line 42 of file text_eval_types.h.
References m_data.
|
inline |
|
inlineexplicit |
Definition at line 47 of file text_eval_types.h.
References HasValue().
|
private |
Definition at line 35 of file text_eval_types.h.
Referenced by GetError(), GetValue(), HasError(), HasValue(), Result(), and Result().