19 #include "qgis_core.h" 73 return mEnabled == other.mEnabled && mData == other.mData;
135 bool mEnabled =
false;
139 #endif // QGSOPTIONAL_H const T * operator->() const
Access the payload data.
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.
bool enabled() const
Check if this optional is enabled.
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.