QGIS API Documentation  2.8.6-Wien
Public Member Functions | List of all members
QgsAttributes Class Reference

A vector of attributes. More...

#include <qgsfeature.h>

Inheritance diagram for QgsAttributes:
Inheritance graph
[legend]

Public Member Functions

 QgsAttributes ()
 
 QgsAttributes (int size)
 
 QgsAttributes (int size, const QVariant &v)
 
 QgsAttributes (const QVector< QVariant > &v)
 
bool operator!= (const QgsAttributes &v) const
 
bool operator== (const QgsAttributes &v) const
 Compares two vectors of attributes. More...
 

Detailed Description

A vector of attributes.

Mostly equal to QVector<QVariant>.

Definition at line 103 of file qgsfeature.h.

Constructor & Destructor Documentation

QgsAttributes::QgsAttributes ( )
inline

Definition at line 106 of file qgsfeature.h.

QgsAttributes::QgsAttributes ( int  size)
inline

Definition at line 109 of file qgsfeature.h.

QgsAttributes::QgsAttributes ( int  size,
const QVariant &  v 
)
inline

Definition at line 112 of file qgsfeature.h.

QgsAttributes::QgsAttributes ( const QVector< QVariant > &  v)
inline

Definition at line 116 of file qgsfeature.h.

Member Function Documentation

bool QgsAttributes::operator!= ( const QgsAttributes v) const
inline

Definition at line 142 of file qgsfeature.h.

bool QgsAttributes::operator== ( const QgsAttributes v) const
inline

Compares two vectors of attributes.

They are considered equal if all their members contain the same value and NULL flag. This was introduced because the default Qt implementation of QVariant comparison does not handle NULL values for certain types (like int).

Parameters
vThe attributes to compare
Returns
True if v is equal

Definition at line 129 of file qgsfeature.h.


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