QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
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
 
 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

◆ 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 45 of file qgsunsetattributevalue.h.

◆ operator QVariant()

QgsUnsetAttributeValue::operator QVariant ( ) const
inline

Allows direct construction of QVariants from unset values.

Definition at line 70 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 55 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 50 of file qgsunsetattributevalue.h.


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