QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsUnsetAttributeValue Class Reference

Represents a default, "not-specified" value for a feature attribute. More...

#include <qgsunsetattributevalue.h>

Public Member Functions

 QgsUnsetAttributeValue ()=default
 Constructor for a QgsUnsetAttributeValue.
 
 QgsUnsetAttributeValue (const QString &defaultValueClause)
 Constructor for a QgsUnsetAttributeValue, with the specified original provider's default value clause.
 
QString defaultValueClause () const
 Returns the original data provider's default value clause.
 
 operator QVariant () const
 Allows direct construction of QVariants from unset values.
 
bool operator!= (const QgsUnsetAttributeValue &) const
 QgsUnsetAttributeValues are always considered equal to each other, regardless of what the original provider's default value clause was.
 
bool operator== (const QgsUnsetAttributeValue &) const
 QgsUnsetAttributeValues are always considered equal to each other, regardless of what the original provider's default value clause was.
 

Detailed Description

Represents a default, "not-specified" value for a feature attribute.

Since
QGIS 3.28

Definition at line 31 of file qgsunsetattributevalue.h.

Constructor & Destructor Documentation

◆ QgsUnsetAttributeValue() [1/2]

QgsUnsetAttributeValue::QgsUnsetAttributeValue ( )
default

Constructor for a QgsUnsetAttributeValue.

◆ QgsUnsetAttributeValue() [2/2]

QgsUnsetAttributeValue::QgsUnsetAttributeValue ( const QString &  defaultValueClause)
explicit

Constructor for a QgsUnsetAttributeValue, with the specified original provider's default value clause.

Definition at line 20 of file qgsunsetattributevalue.cpp.

Member Function Documentation

◆ defaultValueClause()

QString QgsUnsetAttributeValue::defaultValueClause ( ) const
inline

Returns the original data provider's default value clause.

Definition at line 48 of file qgsunsetattributevalue.h.

◆ operator QVariant()

QgsUnsetAttributeValue::operator QVariant ( ) const
inline

Allows direct construction of QVariants from unset values.

Definition at line 73 of file qgsunsetattributevalue.h.

◆ operator!=()

bool QgsUnsetAttributeValue::operator!= ( const QgsUnsetAttributeValue ) const
inline

QgsUnsetAttributeValues are always considered equal to each other, regardless of what the original provider's default value clause was.

Definition at line 58 of file qgsunsetattributevalue.h.

◆ operator==()

bool QgsUnsetAttributeValue::operator== ( const QgsUnsetAttributeValue ) const
inline

QgsUnsetAttributeValues are always considered equal to each other, regardless of what the original provider's default value clause was.

Definition at line 53 of file qgsunsetattributevalue.h.


The documentation for this class was generated from the following files: