71 return mEnabled == other.mEnabled && mData == other.mData;
137 #endif // QGSOPTIONAL_H QgsOptional()
A QgsOptional is disabled by default if default constructed.
bool enabled() const
Check if this optional is enabled.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QgsOptional(const T &data, bool enabled)
A QgsOptional constructed with enabled status and data.
void setData(const T &data)
Set the payload data.
QgsOptional(const T &data)
A QgsOptional is enabled by default if constructed with payload.
QgsOptional is a container for other classes and adds an additional enabled/disabled flag...
T data() const
Access the payload data.
void setEnabled(bool enabled)
Set if this optional is enabled.
const T * operator->() const
Access the payload data.