comparison data/model/SparseValueModel.h @ 1069:32ab6c48efaa

Merge from branch tonioni
author Chris Cannam
date Mon, 20 Apr 2015 09:11:34 +0100
parents a1cd5abcb38b
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1036:682d64f05e72 1069:32ab6c48efaa
29 29
30 template <typename PointType> 30 template <typename PointType>
31 class SparseValueModel : public SparseModel<PointType> 31 class SparseValueModel : public SparseModel<PointType>
32 { 32 {
33 public: 33 public:
34 SparseValueModel(int sampleRate, int resolution, 34 SparseValueModel(sv_samplerate_t sampleRate, int resolution,
35 bool notifyOnAdd = true) : 35 bool notifyOnAdd = true) :
36 SparseModel<PointType>(sampleRate, resolution, notifyOnAdd), 36 SparseModel<PointType>(sampleRate, resolution, notifyOnAdd),
37 m_valueMinimum(0.f), 37 m_valueMinimum(0.f),
38 m_valueMaximum(0.f), 38 m_valueMaximum(0.f),
39 m_haveExtents(false) 39 m_haveExtents(false)
40 { } 40 { }
41 41
42 SparseValueModel(int sampleRate, int resolution, 42 SparseValueModel(sv_samplerate_t sampleRate, int resolution,
43 float valueMinimum, float valueMaximum, 43 float valueMinimum, float valueMaximum,
44 bool notifyOnAdd = true) : 44 bool notifyOnAdd = true) :
45 SparseModel<PointType>(sampleRate, resolution, notifyOnAdd), 45 SparseModel<PointType>(sampleRate, resolution, notifyOnAdd),
46 m_valueMinimum(valueMinimum), 46 m_valueMinimum(valueMinimum),
47 m_valueMaximum(valueMaximum), 47 m_valueMaximum(valueMaximum),