QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
A vector of attributes. More...
#include <qgsfeature.h>
Public Member Functions | |
QgsAttributes () | |
QgsAttributes (int size) | |
Create a new vector of attributes with the given size. More... | |
QgsAttributes (int size, const QVariant &v) | |
Constructs a vector with an initial size of size elements. More... | |
QgsAttributes (const QVector< QVariant > &v) | |
Copies another vector of attributes. More... | |
bool | operator!= (const QgsAttributes &v) const |
bool | operator== (const QgsAttributes &v) const |
Compares two vectors of attributes. More... | |
Public Member Functions inherited from QVector< QVariant > | |
QVector () | |
QVector (int size) | |
QVector (const QVector< T > &other) | |
QVector (std::initializer_list< T > args) | |
QVector (int size, const T &value) | |
~QVector () | |
void | append (const T &value) |
const T & | at (int i) const |
const_reference | back () const |
reference | back () |
iterator | begin () |
const_iterator | begin () const |
int | capacity () const |
void | clear () |
const_iterator | constBegin () const |
const T * | constData () const |
const_iterator | constEnd () const |
bool | contains (const T &value) const |
int | count (const T &value) const |
int | count () const |
T * | data () |
const T * | data () const |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
bool | endsWith (const T &value) const |
iterator | erase (iterator begin, iterator end) |
iterator | erase (iterator pos) |
QVector< T > & | fill (const T &value, int size) |
T & | first () |
const T & | first () const |
T & | front () |
const_reference | front () const |
int | indexOf (const T &value, int from) const |
void | insert (int i, const T &value) |
void | insert (int i, int count, const T &value) |
iterator | insert (iterator before, int count, const T &value) |
iterator | insert (iterator before, const T &value) |
bool | isEmpty () const |
T & | last () |
const T & | last () const |
int | lastIndexOf (const T &value, int from) const |
QVector< T > | mid (int pos, int length) const |
bool | operator!= (const QVector< T > &other) const |
QVector< T > | operator+ (const QVector< T > &other) const |
QVector< T > & | operator+= (const QVector< T > &other) |
QVector< T > & | operator+= (const T &value) |
QVector< T > & | operator<< (const T &value) |
QVector< T > & | operator<< (const QVector< T > &other) |
QVector< T > & | operator= (const QVector< T > &other) |
bool | operator== (const QVector< T > &other) const |
T & | operator[] (int i) |
const T & | operator[] (int i) const |
void | pop_back () |
void | pop_front () |
void | prepend (const T &value) |
void | push_back (const T &value) |
void | push_front (const T &value) |
void | remove (int i) |
void | remove (int i, int count) |
void | replace (int i, const T &value) |
void | reserve (int size) |
void | resize (int size) |
int | size () const |
void | squeeze () |
bool | startsWith (const T &value) const |
void | swap (QVector< T > &other) |
QList< T > | toList () const |
std::vector< T > | toStdVector () const |
T | value (int i) const |
T | value (int i, const T &defaultValue) const |
Additional Inherited Members | |
Static Public Member Functions inherited from QVector< QVariant > | |
QVector< T > | fromList (const QList< T > &list) |
QVector< T > | fromStdVector (const std::vector< T > &vector) |
Public Attributes inherited from QVector< QVariant > | |
typedef | const_iterator |
typedef | const_pointer |
typedef | const_reference |
typedef | ConstIterator |
typedef | difference_type |
typedef | Iterator |
typedef | iterator |
typedef | pointer |
typedef | reference |
typedef | size_type |
typedef | value_type |
A vector of attributes.
Mostly equal to QVector<QVariant>.
Definition at line 115 of file qgsfeature.h.
|
inline |
Definition at line 118 of file qgsfeature.h.
|
inline |
Create a new vector of attributes with the given size.
size | Number of attributes |
Definition at line 126 of file qgsfeature.h.
|
inline |
Constructs a vector with an initial size of size elements.
Each element is initialized with value.
size | Number of elements |
v | Initial value |
Definition at line 134 of file qgsfeature.h.
Copies another vector of attributes.
v | Attributes to copy |
Definition at line 142 of file qgsfeature.h.
|
inline |
Definition at line 168 of file qgsfeature.h.
|
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).
v | The attributes to compare |
Definition at line 155 of file qgsfeature.h.