QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Public Attributes | Protected Attributes | List of all members
QgsVectorJoinInfo Struct Reference

#include <qgsvectorlayer.h>

Public Member Functions

 QgsVectorJoinInfo ()
 
QStringListjoinFieldNamesSubset () const
 Get subset of fields to be used from joined layer. More...
 
bool operator== (const QgsVectorJoinInfo &other) const
 
void setJoinFieldNamesSubset (QStringList *fieldNamesSubset)
 Set subset of fields to be used from joined layer. More...
 

Public Attributes

QHash< QString, QgsAttributescachedAttributes
 Cache for joined attributes to provide fast lookup (size is 0 if no memory caching) More...
 
bool cacheDirty
 True if the cached join attributes need to be updated. More...
 
int joinFieldIndex
 Join field index in the source layer. More...
 
QString joinFieldName
 Join field in the source layer. More...
 
QString joinLayerId
 Source layer. More...
 
bool memoryCache
 True if the join is cached in virtual memory. More...
 
QString prefix
 An optional prefix. More...
 
int targetFieldIndex
 Join field index in the target layer. More...
 
QString targetFieldName
 Join field in the target layer. More...
 

Protected Attributes

QSharedPointer< QStringListjoinFieldsSubset
 Subset of fields to use from joined layer. More...
 

Detailed Description

Definition at line 76 of file qgsvectorlayer.h.

Constructor & Destructor Documentation

◆ QgsVectorJoinInfo()

QgsVectorJoinInfo::QgsVectorJoinInfo ( )
inline

Definition at line 78 of file qgsvectorlayer.h.

Member Function Documentation

◆ joinFieldNamesSubset()

QStringList* QgsVectorJoinInfo::joinFieldNamesSubset ( ) const
inline

Get subset of fields to be used from joined layer.

All fields will be used if null is returned.

Note
added in 2.6

Definition at line 126 of file qgsvectorlayer.h.

◆ operator==()

bool QgsVectorJoinInfo::operator== ( const QgsVectorJoinInfo other) const
inline

Definition at line 111 of file qgsvectorlayer.h.

◆ setJoinFieldNamesSubset()

void QgsVectorJoinInfo::setJoinFieldNamesSubset ( QStringList fieldNamesSubset)
inline

Set subset of fields to be used from joined layer.

Takes ownership of the passed pointer. Null pointer tells to use all fields.

Note
added in 2.6

Definition at line 123 of file qgsvectorlayer.h.

Member Data Documentation

◆ cachedAttributes

QHash< QString, QgsAttributes> QgsVectorJoinInfo::cachedAttributes

Cache for joined attributes to provide fast lookup (size is 0 if no memory caching)

Note
not available in python bindings

Definition at line 99 of file qgsvectorlayer.h.

◆ cacheDirty

bool QgsVectorJoinInfo::cacheDirty

True if the cached join attributes need to be updated.

Definition at line 94 of file qgsvectorlayer.h.

◆ joinFieldIndex

int QgsVectorJoinInfo::joinFieldIndex

Join field index in the source layer.

For backward compatibility with 1.x (x>=7)

Definition at line 104 of file qgsvectorlayer.h.

◆ joinFieldName

QString QgsVectorJoinInfo::joinFieldName

Join field in the source layer.

Definition at line 90 of file qgsvectorlayer.h.

◆ joinFieldsSubset

QSharedPointer<QStringList> QgsVectorJoinInfo::joinFieldsSubset
protected

Subset of fields to use from joined layer.

null = use all fields

Definition at line 130 of file qgsvectorlayer.h.

◆ joinLayerId

QString QgsVectorJoinInfo::joinLayerId

Source layer.

Definition at line 88 of file qgsvectorlayer.h.

◆ memoryCache

bool QgsVectorJoinInfo::memoryCache

True if the join is cached in virtual memory.

Definition at line 92 of file qgsvectorlayer.h.

◆ prefix

QString QgsVectorJoinInfo::prefix

An optional prefix.

If it is a Null string "{layername}_" will be used

Note
Added in 2.8

Definition at line 109 of file qgsvectorlayer.h.

◆ targetFieldIndex

int QgsVectorJoinInfo::targetFieldIndex

Join field index in the target layer.

For backward compatibility with 1.x (x>=7)

Definition at line 102 of file qgsvectorlayer.h.

◆ targetFieldName

QString QgsVectorJoinInfo::targetFieldName

Join field in the target layer.

Definition at line 86 of file qgsvectorlayer.h.


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