diff data/model/SparseModel.h @ 459:6441b31b37ac

* somewhat clearer layout in region layer
author Chris Cannam
date Thu, 16 Oct 2008 13:38:33 +0000
parents 113cf8781bd1
children 1415e35881f6
line wrap: on
line diff
--- a/data/model/SparseModel.h	Wed Oct 15 12:08:02 2008 +0000
+++ b/data/model/SparseModel.h	Thu Oct 16 13:38:33 2008 +0000
@@ -79,6 +79,11 @@
     virtual size_t getPointCount() const;
 
     /**
+     * Get all points.
+     */
+    virtual const PointList &getPoints() const;
+
+    /**
      * Get all of the points in this model between the given
      * boundaries (in frames), as well as up to two points before and
      * after the boundaries.  If you need exact boundaries, check the
@@ -93,11 +98,6 @@
     virtual PointList getPoints(long frame) const;
 
     /**
-     * Get all points.
-     */
-    virtual const PointList &getPoints() const { return m_points; }
-
-    /**
      * Return all points that share the nearest frame number prior to
      * the given one at which there are any points.
      */
@@ -477,6 +477,13 @@
 }
 
 template <typename PointType>
+const typename SparseModel<PointType>::PointList &
+SparseModel<PointType>::getPoints() const
+{
+    return m_points;
+}
+
+template <typename PointType>
 typename SparseModel<PointType>::PointList
 SparseModel<PointType>::getPoints(long start, long end) const
 {