21   const QString strId = layerId + ruleId;
 
   23   const int maskId = mLabelLayers.indexOf( maskedSymbolLayers );
 
   27     mMaskIds[
maskId].insert( strId );
 
   31   mLabelLayers.push_back( maskedSymbolLayers );
 
   32   mMaskIds.push_back( QSet<QString>() << strId );
 
   33   return mMaskIds.size() - 1;
 
   38   if ( labelLayerId.isEmpty() )
 
   41   const QString 
id = labelLayerId + labelRuleId;
 
   42   for ( 
int i = 0; i < mMaskIds.size(); i++ )
 
   44     if ( mMaskIds[i].contains( 
id ) )
 
   52   return mMaskIds.size();
 
int size() const
Returns the number of identifiers allocated.
int maskId(const QString &labelLayerId=QString(), const QString &labelRuleId=QString()) const
Returns the mask id associated with a label layer and its optional label rule.
int insertLabelLayer(const QString &layerId, const QString &ruleId, const QSet< QgsSymbolLayerReference > &maskedSymbolLayers)
Inserts a label layer to the provider and returns its associated mask id.