16#ifndef QGSFIELD_PRIVATE_H
17#define QGSFIELD_PRIVATE_H
48class QgsFieldPrivate :
public QSharedData
52 QgsFieldPrivate(
const QString &name = QString(),
53 QVariant::Type type = QVariant::Invalid,
54 QVariant::Type subType = QVariant::Invalid,
58 const QString &comment = QString() )
69 QgsFieldPrivate(
const QgsFieldPrivate &other )
70 : QSharedData( other )
73 , subType( other.subType )
75 , length( other.length )
77 , comment( other.comment )
78 , alias( other.alias )
79 , flags( other.flags )
80 , defaultValueDefinition( other.defaultValueDefinition )
81 , constraints( other.constraints )
82 , splitPolicy( other.splitPolicy )
83 , isReadOnly( other.isReadOnly )
87 ~QgsFieldPrivate() =
default;
90 bool operator==(
const QgsFieldPrivate &other )
const
92 return ( ( name == other.name ) && ( type == other.type ) && ( subType == other.subType )
93 && ( length == other.length ) && (
precision == other.precision )
94 && ( alias == other.alias ) && ( defaultValueDefinition == other.defaultValueDefinition )
95 && ( constraints == other.constraints ) && ( flags == other.flags )
96 && ( splitPolicy == other.splitPolicy )
97 && ( isReadOnly == other.isReadOnly ) );
107 QVariant::Type subType;
139 bool isReadOnly =
false;
142 QgsFieldPrivate &operator=(
const QgsFieldPrivate & ) =
delete;
FieldDomainSplitPolicy
Split policy for field domains.
@ Duplicate
Duplicate original value.
The QgsDefaultValue class provides a container for managing client side default values for fields.
Stores information about constraints which may be present on a field.
@ None
No flag is defined.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)