QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | Friends | List of all members
QgsVectorLayerCache::QgsCachedFeature Class Reference

This is a wrapper class around a cached QgsFeature, which will inform the cache, when it has been deleted, so indexes can be updated that the wrapped feature needs to be fetched again if needed. More...

Collaboration diagram for QgsVectorLayerCache::QgsCachedFeature:
Collaboration graph
[legend]

Public Member Functions

 QgsCachedFeature (const QgsFeature &feat, QgsVectorLayerCache *vlCache)
 Will create a new cached feature.
 ~QgsCachedFeature ()
const QgsFeaturefeature ()

Private Attributes

QgsFeaturemFeature
QgsVectorLayerCachemCache

Friends

class QgsVectorLayerCache

Detailed Description

This is a wrapper class around a cached QgsFeature, which will inform the cache, when it has been deleted, so indexes can be updated that the wrapped feature needs to be fetched again if needed.

Definition at line 48 of file qgsvectorlayercache.h.

Constructor & Destructor Documentation

QgsVectorLayerCache::QgsCachedFeature::QgsCachedFeature ( const QgsFeature feat,
QgsVectorLayerCache vlCache 
)
inline

Will create a new cached feature.

Parameters
featThe feature to cache. A copy will be made.
vlCacheThe cache to inform when the feature has been removed from the cache.

Definition at line 57 of file qgsvectorlayercache.h.

QgsVectorLayerCache::QgsCachedFeature::~QgsCachedFeature ( )
inline

Definition at line 63 of file qgsvectorlayercache.h.

Member Function Documentation

const QgsFeature* QgsVectorLayerCache::QgsCachedFeature::feature ( )
inline

Definition at line 71 of file qgsvectorlayercache.h.

Referenced by QgsVectorLayerCache::featureAtId().

Friends And Related Function Documentation

friend class QgsVectorLayerCache
friend

Definition at line 77 of file qgsvectorlayercache.h.

Member Data Documentation

QgsVectorLayerCache* QgsVectorLayerCache::QgsCachedFeature::mCache
private

Definition at line 75 of file qgsvectorlayercache.h.

QgsFeature* QgsVectorLayerCache::QgsCachedFeature::mFeature
private

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