16#ifndef QGSFIELD_PRIVATE_H
17#define QGSFIELD_PRIVATE_H
47class QgsFieldPrivate :
public QSharedData
51 QgsFieldPrivate(
const QString &name = QString(),
52 QVariant::Type type = QVariant::Invalid,
53 QVariant::Type subType = QVariant::Invalid,
57 const QString &comment = QString() )
68 QgsFieldPrivate(
const QgsFieldPrivate &other )
69 : QSharedData( other )
72 , subType( other.subType )
74 , length( other.length )
76 , comment( other.comment )
77 , alias( other.alias )
78 , flags( other.flags )
79 , defaultValueDefinition( other.defaultValueDefinition )
80 , constraints( other.constraints )
81 , isReadOnly( other.isReadOnly )
85 ~QgsFieldPrivate() =
default;
88 bool operator==(
const QgsFieldPrivate &other )
const
90 return ( ( name == other.name ) && ( type == other.type ) && ( subType == other.subType )
91 && ( length == other.length ) && (
precision == other.precision )
92 && ( alias == other.alias ) && ( defaultValueDefinition == other.defaultValueDefinition )
93 && ( constraints == other.constraints ) && ( flags == other.flags )
94 && ( isReadOnly == other.isReadOnly ) );
104 QVariant::Type subType;
133 bool isReadOnly =
false;
136 QgsFieldPrivate &operator=(
const QgsFieldPrivate & ) =
delete;
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)