Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 2, 2017
1 parent a4838e1 commit a05096d
Show file tree
Hide file tree
Showing 40 changed files with 86 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/openstreetmap/qgsosmdatabase.h
Expand Up @@ -49,7 +49,9 @@ class ANALYSIS_EXPORT QgsOSMDatabase
explicit QgsOSMDatabase( const QString& dbFileName = QString() );
~QgsOSMDatabase();

//! QgsOSMDatabase cannot be copied.
QgsOSMDatabase( const QgsOSMDatabase& rh ) = delete;
//! QgsOSMDatabase cannot be copied.
QgsOSMDatabase& operator=( const QgsOSMDatabase& rh ) = delete;

void setFileName( const QString& dbFileName ) { mDbFileName = dbFileName; }
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/raster/qgsrastercalcnode.h
Expand Up @@ -76,7 +76,9 @@ class ANALYSIS_EXPORT QgsRasterCalcNode
QgsRasterCalcNode( const QString& rasterName );
~QgsRasterCalcNode();

//! QgsRasterCalcNode cannot be copied
QgsRasterCalcNode( const QgsRasterCalcNode& rh ) = delete;
//! QgsRasterCalcNode cannot be copied
QgsRasterCalcNode& operator=( const QgsRasterCalcNode& rh ) = delete;

Type type() const { return mType; }
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/raster/qgsrelief.h
Expand Up @@ -45,7 +45,9 @@ class ANALYSIS_EXPORT QgsRelief
QgsRelief( const QString& inputFile, const QString& outputFile, const QString& outputFormat );
~QgsRelief();

//! QgsRelief cannot be copied
QgsRelief( const QgsRelief& rh ) = delete;
//! QgsRelief cannot be copied
QgsRelief& operator=( const QgsRelief& rh ) = delete;

/** Starts the calculation, reads from mInputFile and stores the result in mOutputFile
Expand Down
2 changes: 2 additions & 0 deletions src/core/effects/qgspainteffectregistry.h
Expand Up @@ -161,7 +161,9 @@ class CORE_EXPORT QgsPaintEffectRegistry
QgsPaintEffectRegistry();
~QgsPaintEffectRegistry();

//! QgsPaintEffectRegistry cannot be copied.
QgsPaintEffectRegistry( const QgsPaintEffectRegistry& rh ) = delete;
//! QgsPaintEffectRegistry cannot be copied.
QgsPaintEffectRegistry& operator=( const QgsPaintEffectRegistry& rh ) = delete;

/** Returns the metadata for a specific effect.
Expand Down
2 changes: 2 additions & 0 deletions src/core/gps/qgsgpsconnectionregistry.h
Expand Up @@ -36,7 +36,9 @@ class CORE_EXPORT QgsGPSConnectionRegistry
QgsGPSConnectionRegistry();
~QgsGPSConnectionRegistry();

//! QgsGPSConnectionRegistry cannot be copied.
QgsGPSConnectionRegistry( const QgsGPSConnectionRegistry& rh ) = delete;
//! QgsGPSConnectionRegistry cannot be copied.
QgsGPSConnectionRegistry& operator=( const QgsGPSConnectionRegistry& rh ) = delete;

//! Inserts a connection into the registry. The connection is owned by the registry class until it is unregistered again
Expand Down
2 changes: 2 additions & 0 deletions src/core/pal/feature.h
Expand Up @@ -66,7 +66,9 @@ namespace pal
}
~LabelInfo() { delete [] char_info; }

//! LabelInfo cannot be copied
LabelInfo( const LabelInfo& rh ) = delete;
//! LabelInfo cannot be copied
LabelInfo& operator=( const LabelInfo& rh ) = delete;

double max_char_angle_inside;
Expand Down
2 changes: 2 additions & 0 deletions src/core/pal/pal.h
Expand Up @@ -96,7 +96,9 @@ namespace pal

~Pal();

//! Pal cannot be copied.
Pal( const Pal& other ) = delete;
//! Pal cannot be copied.
Pal& operator=( const Pal& other ) = delete;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/core/pal/palstat.h
Expand Up @@ -51,7 +51,9 @@ namespace pal

~PalStat();

//! PalStat cannot be copied
PalStat( const PalStat& other ) = delete;
//! PalStat cannot be copied
PalStat& operator=( const PalStat& other ) = delete;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/core/pal/priorityqueue.h
Expand Up @@ -58,7 +58,9 @@ namespace pal
PriorityQueue( int n, int maxId, bool min );
~PriorityQueue();

//! PriorityQueue cannot be copied.
PriorityQueue( const PriorityQueue & ) = delete;
//! PriorityQueue cannot be copied.
PriorityQueue &operator=( const PriorityQueue & ) = delete;

void print();
Expand Down
2 changes: 2 additions & 0 deletions src/core/pal/problem.h
Expand Up @@ -112,7 +112,9 @@ namespace pal

~Problem();

//! Problem cannot be copied
Problem( const Problem& other ) = delete;
//! Problem cannot be copied
Problem& operator=( const Problem& other ) = delete;

/** Adds a candidate label position to the problem.
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsconnectionpool.h
Expand Up @@ -78,7 +78,9 @@ class QgsConnectionPoolGroup
}
}

//! QgsConnectionPoolGroup cannot be copied
QgsConnectionPoolGroup( const QgsConnectionPoolGroup& other ) = delete;
//! QgsConnectionPoolGroup cannot be copied
QgsConnectionPoolGroup& operator=( const QgsConnectionPoolGroup& other ) = delete;

T acquire()
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgscrscache.h
Expand Up @@ -32,7 +32,9 @@ class CORE_EXPORT QgsCoordinateTransformCache
public:
static QgsCoordinateTransformCache* instance();

//! QgsCoordinateTransformCache cannot be copied
QgsCoordinateTransformCache( const QgsCoordinateTransformCache& rh ) = delete;
//! QgsCoordinateTransformCache cannot be copied
QgsCoordinateTransformCache& operator=( const QgsCoordinateTransformCache& rh ) = delete;

/** Returns coordinate transformation. Cache keeps ownership
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsdataitemproviderregistry.h
Expand Up @@ -37,7 +37,9 @@ class CORE_EXPORT QgsDataItemProviderRegistry

~QgsDataItemProviderRegistry();

//! QgsDataItemProviderRegistry cannot be copied.
QgsDataItemProviderRegistry( const QgsDataItemProviderRegistry& rh ) = delete;
//! QgsDataItemProviderRegistry cannot be copied.
QgsDataItemProviderRegistry& operator=( const QgsDataItemProviderRegistry& rh ) = delete;

//! Get list of available providers
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsexpression.h
Expand Up @@ -1187,7 +1187,9 @@ class CORE_EXPORT QgsExpression
{}
~WhenThen() { delete mWhenExp; delete mThenExp; }

//! WhenThen nodes cannot be copied.
WhenThen( const WhenThen& rh ) = delete;
//! WhenThen nodes cannot be copied.
WhenThen& operator=( const WhenThen& rh ) = delete;

// protected:
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsgml.h
Expand Up @@ -88,7 +88,9 @@ class CORE_EXPORT QgsGmlStreamingParser
bool invertAxisOrientation = false );
~QgsGmlStreamingParser();

//! QgsGmlStreamingParser cannot be copied.
QgsGmlStreamingParser( const QgsGmlStreamingParser& other ) = delete;
//! QgsGmlStreamingParser cannot be copied.
QgsGmlStreamingParser& operator=( const QgsGmlStreamingParser& other ) = delete;

/** Process a new chunk of data. atEnd must be set to true when this is
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgslabelingengine.h
Expand Up @@ -165,7 +165,9 @@ class CORE_EXPORT QgsLabelingEngine
//! Clean up everything (especially the registered providers)
~QgsLabelingEngine();

//! QgsLabelingEngine cannot be copied.
QgsLabelingEngine( const QgsLabelingEngine& rh ) = delete;
//! QgsLabelingEngine cannot be copied.
QgsLabelingEngine& operator=( const QgsLabelingEngine& rh ) = delete;

enum Flag
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgslabelsearchtree.h
Expand Up @@ -36,7 +36,9 @@ class CORE_EXPORT QgsLabelSearchTree
QgsLabelSearchTree();
~QgsLabelSearchTree();

//! QgsLabelSearchTree cannot be copied.
QgsLabelSearchTree( const QgsLabelSearchTree& rh ) = delete;
//! QgsLabelSearchTree cannot be copied.
QgsLabelSearchTree& operator=( const QgsLabelSearchTree& rh ) = delete;

//! Removes and deletes all the entries
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgslocalec.h
Expand Up @@ -31,7 +31,9 @@ class CORE_EXPORT QgsLocaleNumC
QgsLocaleNumC();
~QgsLocaleNumC();

//! QgsLocaleNumC cannot be copied
QgsLocaleNumC( const QgsLocaleNumC& rh ) = delete;
//! QgsLocaleNumC cannot be copied
QgsLocaleNumC& operator=( const QgsLocaleNumC& rh ) = delete;

};
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsmaplayer.h
Expand Up @@ -71,7 +71,9 @@ class CORE_EXPORT QgsMapLayer : public QObject

virtual ~QgsMapLayer();

//! QgsMapLayer cannot be copied
QgsMapLayer( QgsMapLayer const & ) = delete;
//! QgsMapLayer cannot be copied
QgsMapLayer & operator=( QgsMapLayer const & ) = delete;

/** Returns the type of the layer.
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgspallabeling.h
Expand Up @@ -705,7 +705,9 @@ class CORE_EXPORT QgsLabelingResults
QgsLabelingResults();
~QgsLabelingResults();

//! QgsLabelingResults cannot be copied.
QgsLabelingResults( const QgsLabelingResults& ) = delete;
//! QgsLabelingResults cannot be copied.
QgsLabelingResults& operator=( const QgsLabelingResults& rh ) = delete;

//! return infos about labels at a given (map) position
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgspluginlayerregistry.h
Expand Up @@ -66,7 +66,9 @@ class CORE_EXPORT QgsPluginLayerRegistry
QgsPluginLayerRegistry();
~QgsPluginLayerRegistry();

//! QgsPluginLayerRegistry cannot be copied.
QgsPluginLayerRegistry( const QgsPluginLayerRegistry& rh ) = delete;
//! QgsPluginLayerRegistry cannot be copied.
QgsPluginLayerRegistry& operator=( const QgsPluginLayerRegistry& rh ) = delete;

/** List all known layer types
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsrulebasedlabeling.h
Expand Up @@ -57,7 +57,9 @@ class CORE_EXPORT QgsRuleBasedLabeling : public QgsAbstractVectorLayerLabeling
Rule( QgsPalLayerSettings* settings, int scaleMinDenom = 0, int scaleMaxDenom = 0, const QString& filterExp = QString(), const QString& description = QString(), bool elseRule = false );
~Rule();

//! Rules cannot be copied.
Rule( const Rule& rh ) = delete;
//! Rules cannot be copied.
Rule& operator=( const Rule& rh ) = delete;

//! The result of registering a rule
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgstransaction.h
Expand Up @@ -52,7 +52,9 @@ class CORE_EXPORT QgsTransaction : public QObject

public:

//! QgsTransaction cannot be copied.
QgsTransaction( const QgsTransaction& other ) = delete;
//! QgsTransaction cannot be copied.
const QgsTransaction& operator=( const QgsTransaction& other ) = delete;

//! Creates a transaction for the specified connection string and provider
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsvectorfilewriter.h
Expand Up @@ -419,7 +419,9 @@ class CORE_EXPORT QgsVectorFileWriter
SymbologyExport symbologyExport = NoSymbology
);

//! QgsVectorFileWriter cannot be copied.
QgsVectorFileWriter( const QgsVectorFileWriter& rh ) = delete;
//! QgsVectorFileWriter cannot be copied.
QgsVectorFileWriter& operator=( const QgsVectorFileWriter& rh ) = delete;

//! Returns map with format filter string as key and OGR format key as value
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayer.h
Expand Up @@ -457,7 +457,9 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte

virtual ~QgsVectorLayer();

//! QgsVectorLayer cannot be copied.
QgsVectorLayer( const QgsVectorLayer & rhs ) = delete;
//! QgsVectorLayer cannot be copied.
QgsVectorLayer & operator=( QgsVectorLayer const & rhs ) = delete;

//! Returns the permanent storage type for this layer as a friendly name.
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayerimport.h
Expand Up @@ -99,7 +99,9 @@ class CORE_EXPORT QgsVectorLayerImport
QProgressDialog *progress = nullptr
);

//! QgsVectorLayerImport cannot be copied
QgsVectorLayerImport( const QgsVectorLayerImport& rh ) = delete;
//! QgsVectorLayerImport cannot be copied
QgsVectorLayerImport& operator=( const QgsVectorLayerImport& rh ) = delete;

//! Checks whether there were any errors
Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgsmultibandcolorrenderer.h
Expand Up @@ -34,7 +34,9 @@ class CORE_EXPORT QgsMultiBandColorRenderer: public QgsRasterRenderer
QgsContrastEnhancement* blueEnhancement = nullptr );
~QgsMultiBandColorRenderer();

//! QgsMultiBandColorRenderer cannot be copied. Use clone() instead.
QgsMultiBandColorRenderer( const QgsMultiBandColorRenderer& ) = delete;
//! QgsMultiBandColorRenderer cannot be copied. Use clone() instead.
const QgsMultiBandColorRenderer& operator=( const QgsMultiBandColorRenderer& ) = delete;

QgsMultiBandColorRenderer * clone() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgspalettedrasterrenderer.h
Expand Up @@ -37,7 +37,9 @@ class CORE_EXPORT QgsPalettedRasterRenderer: public QgsRasterRenderer
QgsPalettedRasterRenderer( QgsRasterInterface* input, int bandNumber, QRgb* colorArray, int nColors, const QVector<QString>& labels = QVector<QString>() );
~QgsPalettedRasterRenderer();

//! QgsPalettedRasterRenderer cannot be copied. Use clone() instead.
QgsPalettedRasterRenderer( const QgsPalettedRasterRenderer& ) = delete;
//! QgsPalettedRasterRenderer cannot be copied. Use clone() instead.
const QgsPalettedRasterRenderer& operator=( const QgsPalettedRasterRenderer& ) = delete;

QgsPalettedRasterRenderer * clone() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgsrasterrenderer.h
Expand Up @@ -43,7 +43,9 @@ class CORE_EXPORT QgsRasterRenderer : public QgsRasterInterface
QgsRasterRenderer( QgsRasterInterface* input = nullptr, const QString& type = "" );
virtual ~QgsRasterRenderer();

//! QgsRasterRenderer cannot be copied. Use clone() instead.
QgsRasterRenderer( const QgsRasterRenderer& ) = delete;
//! QgsRasterRenderer cannot be copied. Use clone() instead.
const QgsRasterRenderer& operator=( const QgsRasterRenderer& ) = delete;

QgsRasterRenderer * clone() const override = 0;
Expand Down
8 changes: 8 additions & 0 deletions src/core/raster/qgsrastershader.h
Expand Up @@ -34,7 +34,9 @@ class CORE_EXPORT QgsRasterShader
QgsRasterShader( double theMinimumValue = 0.0, double theMaximumValue = 255.0 );
~QgsRasterShader();

//! QgsRasterShader cannot be copied
QgsRasterShader( const QgsRasterShader& rh ) = delete;
//! QgsRasterShader cannot be copied
QgsRasterShader& operator=( const QgsRasterShader& rh ) = delete;

/*
Expand Down Expand Up @@ -72,8 +74,14 @@ class CORE_EXPORT QgsRasterShader
//! \brief Return the minimum value
void setMinimumValue( double );

/**
* Writes shader state to an XML element.
*/
void writeXml( QDomDocument& doc, QDomElement& parent ) const;

/**
* Reads shader state from an XML element.
*/
void readXml( const QDomElement& elem );

private:
Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgssinglebandcolordatarenderer.h
Expand Up @@ -30,7 +30,9 @@ class CORE_EXPORT QgsSingleBandColorDataRenderer: public QgsRasterRenderer
public:
QgsSingleBandColorDataRenderer( QgsRasterInterface* input, int band );

//! QgsSingleBandColorDataRenderer cannot be copied. Use clone() instead.
QgsSingleBandColorDataRenderer( const QgsSingleBandColorDataRenderer& ) = delete;
//! QgsSingleBandColorDataRenderer cannot be copied. Use clone() instead.
const QgsSingleBandColorDataRenderer& operator=( const QgsSingleBandColorDataRenderer& ) = delete;

QgsSingleBandColorDataRenderer * clone() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgssinglebandgrayrenderer.h
Expand Up @@ -38,7 +38,9 @@ class CORE_EXPORT QgsSingleBandGrayRenderer: public QgsRasterRenderer
QgsSingleBandGrayRenderer( QgsRasterInterface* input, int grayBand );
~QgsSingleBandGrayRenderer();

//! QgsSingleBandGrayRenderer cannot be copied. Use clone() instead.
QgsSingleBandGrayRenderer( const QgsSingleBandGrayRenderer& ) = delete;
//! QgsSingleBandGrayRenderer cannot be copied. Use clone() instead.
const QgsSingleBandGrayRenderer& operator=( const QgsSingleBandGrayRenderer& ) = delete;

QgsSingleBandGrayRenderer * clone() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgssinglebandpseudocolorrenderer.h
Expand Up @@ -38,7 +38,9 @@ class CORE_EXPORT QgsSingleBandPseudoColorRenderer: public QgsRasterRenderer
QgsSingleBandPseudoColorRenderer( QgsRasterInterface* input, int band = -1, QgsRasterShader* shader = nullptr );
~QgsSingleBandPseudoColorRenderer();

//! QgsSingleBandPseudoColorRenderer cannot be copied. Use clone() instead.
QgsSingleBandPseudoColorRenderer( const QgsSingleBandPseudoColorRenderer& ) = delete;
//! QgsSingleBandPseudoColorRenderer cannot be copied. Use clone() instead.
const QgsSingleBandPseudoColorRenderer& operator=( const QgsSingleBandPseudoColorRenderer& ) = delete;

QgsSingleBandPseudoColorRenderer * clone() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgscptcityarchive.h
Expand Up @@ -41,7 +41,9 @@ class CORE_EXPORT QgsCptCityArchive
const QString& baseDir = QString() );
~QgsCptCityArchive();

//! QgsCptCityArchive cannot be copied
QgsCptCityArchive( const QgsCptCityArchive& rh ) = delete;
//! QgsCptCityArchive cannot be copied
QgsCptCityArchive& operator=( const QgsCptCityArchive& rh ) = delete;

// basic dir info
Expand Down
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgsrendererregistry.h
Expand Up @@ -187,7 +187,9 @@ class CORE_EXPORT QgsRendererRegistry
QgsRendererRegistry();
~QgsRendererRegistry();

//! QgsRendererRegistry cannot be copied.
QgsRendererRegistry( const QgsRendererRegistry& rh ) = delete;
//! QgsRendererRegistry cannot be copied.
QgsRendererRegistry& operator=( const QgsRendererRegistry& rh ) = delete;

//! Adds a renderer to the registry. Takes ownership of the metadata object.
Expand Down
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgsrulebasedrenderer.h
Expand Up @@ -123,7 +123,9 @@ class CORE_EXPORT QgsRuleBasedRenderer : public QgsFeatureRenderer
const QString& label = QString(), const QString& description = QString(), bool elseRule = false );
~Rule();

//! Rules cannot be copied
Rule( const Rule& rh ) = delete;
//! Rules cannot be copied
Rule& operator=( const Rule& rh ) = delete;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgssvgcache.h
Expand Up @@ -52,7 +52,9 @@ class CORE_EXPORT QgsSvgCacheEntry
QgsSvgCacheEntry( const QString& file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFactor, const QColor& fill, const QColor& outline, const QString& lookupKey = QString() );
~QgsSvgCacheEntry();

//! QgsSvgCacheEntry cannot be copied.
QgsSvgCacheEntry( const QgsSvgCacheEntry& rh ) = delete;
//! QgsSvgCacheEntry cannot be copied.
QgsSvgCacheEntry& operator=( const QgsSvgCacheEntry& rh ) = delete;

//! Absolute path to SVG file
Expand Down
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgssymbollayerregistry.h
Expand Up @@ -123,7 +123,9 @@ class CORE_EXPORT QgsSymbolLayerRegistry
QgsSymbolLayerRegistry();
~QgsSymbolLayerRegistry();

//! QgsSymbolLayerRegistry cannot be copied.
QgsSymbolLayerRegistry( const QgsSymbolLayerRegistry& rh ) = delete;
//! QgsSymbolLayerRegistry cannot be copied.
QgsSymbolLayerRegistry& operator=( const QgsSymbolLayerRegistry& rh ) = delete;

//! return metadata for specified symbol layer. Returns NULL if not found
Expand Down

0 comments on commit a05096d

Please sign in to comment.