16 #ifndef QGSFIELD_PRIVATE_H
17 #define QGSFIELD_PRIVATE_H
39 #include <QSharedData>
47 class 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;
87 bool operator==(
const QgsFieldPrivate &other )
const
89 return ( ( name == other.name ) && ( type == other.type ) && ( subType == other.subType )
90 && ( length == other.length ) && (
precision == other.precision )
91 && ( alias == other.alias ) && ( defaultValueDefinition == other.defaultValueDefinition )
92 && ( constraints == other.constraints ) && ( flags == other.flags )
93 && ( isReadOnly == other.isReadOnly ) );
103 QVariant::Type subType;
132 bool isReadOnly =
false;
135 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)