fix class declaration

This commit is contained in:
Denis Rouzaud 2017-06-13 16:57:33 +02:00
parent 5a8ed1d4d9
commit e957224c14
2 changed files with 16 additions and 4 deletions

View File

@ -9,7 +9,8 @@
template <T> class QgsRange
template <T>
class QgsRange
{
%Docstring
A template based class for storing ranges (lower to upper values).
@ -27,6 +28,10 @@ template <T> class QgsRange
.. note::
not available in Python bindings (but class provided for template-based inheritance)
%End
%TypeHeaderCode
#include "qgsrange.h"
%End
public:
@ -117,7 +122,8 @@ typedef QgsRange< double > QgsDoubleRange;
typedef QgsRange< int > QgsIntRange;
template <T> class QgsTemporalRange
template <T>
class QgsTemporalRange
{
%Docstring
A template based class for storing temporal ranges (beginning to end values).
@ -134,6 +140,10 @@ template <T> class QgsTemporalRange
.. note::
not available in Python bindings (but class provided for template-based inheritance)
%End
%TypeHeaderCode
#include "qgsrange.h"
%End
public:

View File

@ -39,7 +39,8 @@
* \see QgsIntRange
* \note not available in Python bindings (but class provided for template-based inheritance)
*/
template <class T> class QgsRange
template <typename T>
class CORE_EXPORT QgsRange
{
public:
@ -213,7 +214,8 @@ typedef QgsRange< int > QgsIntRange;
* \see QgsDateRange
* \note not available in Python bindings (but class provided for template-based inheritance)
*/
template <class T> class QgsTemporalRange
template <typename T>
class CORE_EXPORT QgsTemporalRange
{
public: