QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
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. More...
 
 QgsUnsetAttributeValue (const QString &defaultValueClause)
 Constructor for a QgsUnsetAttributeValue, with the specified original provider's default value clause. More...
 
QString defaultValueClause () const
 Returns the original data provider's default value clause. More...
 
 operator QVariant () const
 Allows direct construction of QVariants from unset values. More...
 
bool operator!= (const QgsUnsetAttributeValue &) const
 QgsUnsetAttributeValues are always considered equal to each other, regardless of what the original provider's default value clause was. More...
 
bool operator== (const QgsUnsetAttributeValue &) const
 QgsUnsetAttributeValues are always considered equal to each other, regardless of what the original provider's default value clause was. More...
 

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: