Skip to content
Permalink
Browse files

fix class declaration

  • Loading branch information
3nids committed Jun 13, 2017
1 parent 5a8ed1d commit e957224c14ed6b5e89a9fc2bbf4ec11abff3445d
Showing with 16 additions and 4 deletions.
  1. +12 −2 python/core/qgsrange.sip
  2. +4 −2 src/core/qgsrange.h
@@ -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:

@@ -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:

0 comments on commit e957224

Please sign in to comment.
You can’t perform that action at this time.