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