summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-03 12:30:26 +0200
committerRobin Gareus <robin@gareus.org>2017-06-03 13:55:02 +0200
commitc2cb60ea03d057bdd36d20c5aa47efaacdf410e9 (patch)
treec34ef600ae99ec9b0129ac12d4fcead7688a04b5 /libs/evoral/evoral
parent0c57199a6ca4e6681ad934873dc107f0ef83a8ee (diff)
add const-ness: Evaluating a curve does not change it.
Note that the ControlList's lock and cache are already mutable.
Diffstat (limited to 'libs/evoral/evoral')
-rw-r--r--libs/evoral/evoral/Curve.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/evoral/evoral/Curve.hpp b/libs/evoral/evoral/Curve.hpp
index bf2de520a0..85158cbc54 100644
--- a/libs/evoral/evoral/Curve.hpp
+++ b/libs/evoral/evoral/Curve.hpp
@@ -33,17 +33,17 @@ class LIBEVORAL_API Curve : public boost::noncopyable
public:
Curve (const ControlList& cl);
- bool rt_safe_get_vector (double x0, double x1, float *arg, int32_t veclen);
- void get_vector (double x0, double x1, float *arg, int32_t veclen);
+ bool rt_safe_get_vector (double x0, double x1, float *arg, int32_t veclen) const;
+ void get_vector (double x0, double x1, float *arg, int32_t veclen) const;
- void solve ();
+ void solve () const;
void mark_dirty() const { _dirty = true; }
private:
- double multipoint_eval (double x);
+ double multipoint_eval (double x) const;
- void _get_vector (double x0, double x1, float *arg, int32_t veclen);
+ void _get_vector (double x0, double x1, float *arg, int32_t veclen) const;
mutable bool _dirty;
const ControlList& _list;