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

Join information prepared for fast attribute id mapping in QgsVectorLayerJoinBuffer::updateFeatureAttributes(). More...

#include <qgsvectorlayerfeatureiterator.h>

Public Member Functions

void addJoinedAttributesCached (QgsFeature &f, const QVariant &joinValue) const
 
void addJoinedAttributesDirect (QgsFeature &f, const QVariant &joinValue) const
 

Public Attributes

QgsAttributeList attributes
 attributes to fetch More...
 
int indexOffset
 at what position the joined fields start More...
 
int joinField
 index of field (of the joined layer) must have equal value More...
 
const QgsVectorJoinInfojoinInfo
 cannonical source of information about the join More...
 
QgsVectorLayerjoinLayer
 resolved pointer to the joined layer More...
 
int targetField
 index of field (of this layer) that drives the join More...
 

Detailed Description

Join information prepared for fast attribute id mapping in QgsVectorLayerJoinBuffer::updateFeatureAttributes().

Created in the select() method of QgsVectorLayerJoinBuffer for the joins that contain fetched attributes

Definition at line 162 of file qgsvectorlayerfeatureiterator.h.

Member Function Documentation

◆ addJoinedAttributesCached()

void QgsVectorLayerFeatureIterator::FetchJoinInfo::addJoinedAttributesCached ( QgsFeature f,
const QVariant joinValue 
) const

Definition at line 714 of file qgsvectorlayerfeatureiterator.cpp.

◆ addJoinedAttributesDirect()

void QgsVectorLayerFeatureIterator::FetchJoinInfo::addJoinedAttributesDirect ( QgsFeature f,
const QVariant joinValue 
) const

Definition at line 732 of file qgsvectorlayerfeatureiterator.cpp.

Member Data Documentation

◆ attributes

QgsAttributeList QgsVectorLayerFeatureIterator::FetchJoinInfo::attributes

attributes to fetch

Definition at line 165 of file qgsvectorlayerfeatureiterator.h.

◆ indexOffset

int QgsVectorLayerFeatureIterator::FetchJoinInfo::indexOffset

at what position the joined fields start

Definition at line 166 of file qgsvectorlayerfeatureiterator.h.

◆ joinField

int QgsVectorLayerFeatureIterator::FetchJoinInfo::joinField

index of field (of the joined layer) must have equal value

Definition at line 169 of file qgsvectorlayerfeatureiterator.h.

◆ joinInfo

const QgsVectorJoinInfo* QgsVectorLayerFeatureIterator::FetchJoinInfo::joinInfo

cannonical source of information about the join

Definition at line 164 of file qgsvectorlayerfeatureiterator.h.

◆ joinLayer

QgsVectorLayer* QgsVectorLayerFeatureIterator::FetchJoinInfo::joinLayer

resolved pointer to the joined layer

Definition at line 167 of file qgsvectorlayerfeatureiterator.h.

◆ targetField

int QgsVectorLayerFeatureIterator::FetchJoinInfo::targetField

index of field (of this layer) that drives the join

Definition at line 168 of file qgsvectorlayerfeatureiterator.h.


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