QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
Public Member Functions | Public Attributes | List of all members
QgsVectorTileDataProviderSharedData Class Reference

Shared data class for vector tile layer data providers. More...

#include <qgsvectortiledataprovider.h>

Public Member Functions

 QgsVectorTileDataProviderSharedData ()
 
bool getCachedTileData (QgsVectorTileRawData &data, QgsTileXYZ id)
 Retrieves previously cached raw tile data for a tile with matching id. More...
 
void storeCachedTileData (const QgsVectorTileRawData &data)
 Stores raw tile data in the shared cache. More...
 

Public Attributes

QReadWriteLock mMutex
 Access to all data members is guarded by the mutex. More...
 
QCache< QgsTileXYZ, QgsVectorTileRawDatamTileCache
 

Detailed Description

Shared data class for vector tile layer data providers.

Note
Not available in Python bindings
Since
QGIS 3.32

Definition at line 42 of file qgsvectortiledataprovider.h.

Constructor & Destructor Documentation

◆ QgsVectorTileDataProviderSharedData()

QgsVectorTileDataProviderSharedData::QgsVectorTileDataProviderSharedData ( )

Definition at line 118 of file qgsvectortiledataprovider.cpp.

Member Function Documentation

◆ getCachedTileData()

bool QgsVectorTileDataProviderSharedData::getCachedTileData ( QgsVectorTileRawData data,
QgsTileXYZ  id 
)

Retrieves previously cached raw tile data for a tile with matching id.

Returns true if tile data was already cached and could be retrieved.

Definition at line 123 of file qgsvectortiledataprovider.cpp.

◆ storeCachedTileData()

void QgsVectorTileDataProviderSharedData::storeCachedTileData ( const QgsVectorTileRawData data)

Stores raw tile data in the shared cache.

Definition at line 135 of file qgsvectortiledataprovider.cpp.

Member Data Documentation

◆ mMutex

QReadWriteLock QgsVectorTileDataProviderSharedData::mMutex

Access to all data members is guarded by the mutex.

Definition at line 61 of file qgsvectortiledataprovider.h.

◆ mTileCache

QCache< QgsTileXYZ, QgsVectorTileRawData > QgsVectorTileDataProviderSharedData::mTileCache

Definition at line 59 of file qgsvectortiledataprovider.h.


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