QEverCloud
6.1.0
Unofficial Evernote Cloud API for Qt
|
Go to the documentation of this file.
9 #ifndef QEVERCLOUD_OPTIONAL_H
10 #define QEVERCLOUD_OPTIONAL_H
136 operator const T&()
const
140 "qevercloud::Optional: nonexistent value access");
155 "qevercloud::Optional: nonexistent value access");
171 "qevercloud::Optional: nonexistent value access");
208 "qevercloud::Optional: nonexistent value access");
310 "qevercloud::Optional: nonexistent value access");
323 "qevercloud::Optional: nonexistent value access");
338 return m_isSet ? m_value : defaultValue;
347 if (m_isSet != other.m_isSet) {
351 return !m_isSet || (m_value == other.m_value);
370 return m_value == other;
383 swap(first.m_isSet, second.m_isSet);
384 swap(first.m_value, second.m_value);
402 swap(m_value, other);
409 swap(m_value, other);
420 #endif // QEVERCLOUD_OPTIONAL_H
Optional & operator=(const Optional< X > &o)
Definition: Optional.h:103
bool operator==(const Optional< T > &other) const
Definition: Optional.h:354
bool isEqual(const Optional< T > &other) const
Definition: Optional.h:345
Optional()
Definition: Optional.h:49
Optional & operator=(const Optional &o)
Definition: Optional.h:92
bool operator!=(const Optional< T > &other) const
Definition: Optional.h:359
Optional(const Optional &o)
Definition: Optional.h:57
Optional(T &&other)
Definition: Optional.h:398
Optional & operator=(T &&other)
Definition: Optional.h:405
const T * operator->() const
Definition: Optional.h:319
Definition: AsyncResult.h:21
Optional & operator=(Optional &&other)
Definition: Optional.h:392
Optional & init()
Definition: Optional.h:265
friend void swap(Optional &first, Optional &second)
Definition: Optional.h:380
Definition: Optional.h:44
Optional(const T &value)
Definition: Optional.h:75
T * operator->()
Definition: Optional.h:306
void clear()
Definition: Optional.h:236
const T & ref() const
Definition: Optional.h:167
Optional & operator=(const T &value)
Definition: Optional.h:113
Optional(const Optional< X > &o)
Definition: Optional.h:67
Optional & operator=(const X &value)
Definition: Optional.h:124
bool operator==(const T &other) const
Definition: Optional.h:364
T value(T defaultValue=T()) const
Definition: Optional.h:336
bool isSet() const
Checks if value is set.
Definition: Optional.h:220
Definition: EverCloudException.h:33
Optional(const X &value)
Definition: Optional.h:84
T & ref()
Definition: Optional.h:204
bool operator!=(const T &other) const
Definition: Optional.h:373
Optional(Optional &&other)
Definition: Optional.h:387