QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
19 #include "qgis_core.h"
73 return mEnabled == other.mEnabled && mData == other.mData;
135 bool mEnabled =
false;
139 #endif // QGSOPTIONAL_H
QgsOptional is a container for other classes and adds an additional enabled/disabled flag.
bool enabled() const
Check if this optional is enabled.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
const T * operator->() const
Access the payload data.
QgsOptional()=default
A QgsOptional is disabled by default if default constructed.
void setData(const T &data)
Set the payload data.
QgsOptional(const T &data, bool enabled)
A QgsOptional constructed with enabled status and data.
void setEnabled(bool enabled)
Set if this optional is enabled.
QgsOptional(const T &data)
A QgsOptional is enabled by default if constructed with payload.
T data() const
Access the payload data.