QGIS API Documentation  2.4.0-Chugiak
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>

Collaboration diagram for QgsVectorLayerFeatureIterator::FetchJoinInfo:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

const QgsVectorJoinInfojoinInfo
 cannonical source of information about the join More...
 
QgsAttributeList attributes
 attributes to fetch More...
 
int indexOffset
 at what position the joined fields start More...
 
QgsVectorLayerjoinLayer
 resolved pointer to the joined layer More...
 
int targetField
 index of field (of this layer) that drives the join More...
 
int joinField
 index of field (of the joined layer) must have equal value 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 124 of file qgsvectorlayerfeatureiterator.h.

Member Function Documentation

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

Member Data Documentation

QgsAttributeList QgsVectorLayerFeatureIterator::FetchJoinInfo::attributes

attributes to fetch

Definition at line 127 of file qgsvectorlayerfeatureiterator.h.

int QgsVectorLayerFeatureIterator::FetchJoinInfo::indexOffset

at what position the joined fields start

Definition at line 128 of file qgsvectorlayerfeatureiterator.h.

Referenced by addJoinedAttributesCached(), and QgsVectorLayerFeatureIterator::prepareJoins().

int QgsVectorLayerFeatureIterator::FetchJoinInfo::joinField

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

Definition at line 131 of file qgsvectorlayerfeatureiterator.h.

Referenced by addJoinedAttributesCached(), and QgsVectorLayerFeatureIterator::prepareJoins().

const QgsVectorJoinInfo* QgsVectorLayerFeatureIterator::FetchJoinInfo::joinInfo
QgsVectorLayer* QgsVectorLayerFeatureIterator::FetchJoinInfo::joinLayer

resolved pointer to the joined layer

Definition at line 129 of file qgsvectorlayerfeatureiterator.h.

Referenced by QgsVectorLayerFeatureIterator::prepareJoins().

int QgsVectorLayerFeatureIterator::FetchJoinInfo::targetField

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

Definition at line 130 of file qgsvectorlayerfeatureiterator.h.

Referenced by QgsVectorLayerFeatureIterator::addJoinedAttributes(), and QgsVectorLayerFeatureIterator::prepareJoins().


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