comparison data/model/SparseValueModel.h @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents 59e7fe1b1003
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1039:b14064bd1f97 1040:a1cd5abcb38b
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),