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(),
59 const QMap< int, QVariant > &metadata = QMap< int, QVariant >() )
67 , metadata( metadata )
71 QgsFieldPrivate(
const QgsFieldPrivate &other )
72 : QSharedData( other )
75 , subType( other.subType )
77 , length( other.length )
79 , comment( other.comment )
80 , metadata( other.metadata )
81 , alias( other.alias )
82 , flags( other.flags )
83 , defaultValueDefinition( other.defaultValueDefinition )
84 , constraints( other.constraints )
85 , splitPolicy( other.splitPolicy )
86 , isReadOnly( other.isReadOnly )
90 ~QgsFieldPrivate() =
default;
93 bool operator==(
const QgsFieldPrivate &other )
const
95 return ( ( name == other.name ) && ( type == other.type ) && ( subType == other.subType )
96 && ( length == other.length ) && (
precision == other.precision )
97 && ( metadata == other.metadata )
98 && ( alias == other.alias ) && ( defaultValueDefinition == other.defaultValueDefinition )
99 && ( constraints == other.constraints ) && ( flags == other.flags )
100 && ( splitPolicy == other.splitPolicy )
101 && ( isReadOnly == other.isReadOnly ) );
111 QVariant::Type subType;
126 QMap< int, QVariant > metadata;
146 bool isReadOnly =
false;
149 QgsFieldPrivate &operator=(
const QgsFieldPrivate & ) =
delete;
FieldDomainSplitPolicy
Split policy for field domains.
@ Duplicate
Duplicate original value.
@ NoFlag
No flag is defined.
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.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)