Envision
A visual programming IDE for object-oriented languages
|
Class inspired by std::experimental::optional, but it additionally contains an error/warning message. More...
Public Member Functions | |
Optional (const Optional &other) | |
Optional (const QString &errorMessage) | |
Optional (const ValueType &v, const QString &warning={}) | |
Optional (Optional &&other) | |
Optional (QString &&errorMessage) | |
Optional (ValueType &&v, const QString &warning={}) | |
void | addWarnings (const QStringList &warnings) |
QStringList | errors () const |
bool | hasErrors () const |
bool | hasWarnings () const |
operator bool () const | |
Optional & | operator= (const Optional &other) |
Optional & | operator= (Optional &&other) |
ValueType & | value () & |
ValueType && | value () && |
const ValueType & | value () const & |
const ValueType && | value () const && |
QStringList | warnings () const |
Private Types | |
enum class | Type : int { Value , Warning , Error } |
Private Attributes | |
QStringList | errors_ |
Types | type_ {Type::Value} |
ValueType | value_ {} |
QStringList | warnings_ |
Class inspired by std::experimental::optional, but it additionally contains an error/warning message.
|
strongprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
Optional< ValueType > & InformationScripting::Optional< ValueType >::operator= | ( | const Optional< ValueType > & | other | ) |
Optional< ValueType > & InformationScripting::Optional< ValueType >::operator= | ( | Optional< ValueType > && | other | ) |
|
inline |
|
inline |
|
inline |
const ValueType&& InformationScripting::Optional< ValueType >::value | ( | ) | const && |
|
inline |
|
private |
|
private |
|
private |
|
private |