Skip to content

Commit

Permalink
fix class declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 13, 2017
1 parent 5a8ed1d commit e957224
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 12 additions & 2 deletions python/core/qgsrange.sip
Expand Up @@ -9,7 +9,8 @@



template <T> class QgsRange
template <T>
class QgsRange
{
%Docstring
A template based class for storing ranges (lower to upper values).
Expand All @@ -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:

Expand Down Expand Up @@ -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).
Expand All @@ -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:

Expand Down
6 changes: 4 additions & 2 deletions src/core/qgsrange.h
Expand Up @@ -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:

Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit e957224

Please sign in to comment.