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;
}
void
-Curve::solve ()
+Curve::solve () const
{
uint32_t npoints;
}
bool
-Curve::rt_safe_get_vector (double x0, double x1, float *vec, int32_t veclen)
+Curve::rt_safe_get_vector (double x0, double x1, float *vec, int32_t veclen) const
{
Glib::Threads::RWLock::ReaderLock lm(_list.lock(), Glib::Threads::TRY_LOCK);
}
void
-Curve::get_vector (double x0, double x1, float *vec, int32_t veclen)
+Curve::get_vector (double x0, double x1, float *vec, int32_t veclen) const
{
Glib::Threads::RWLock::ReaderLock lm(_list.lock());
_get_vector (x0, x1, vec, veclen);
}
void
-Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
+Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen) const
{
double rx, lx, hx, max_x, min_x;
int32_t i;
}
double
-Curve::multipoint_eval (double x)
+Curve::multipoint_eval (double x) const
{
pair<ControlList::EventList::const_iterator,ControlList::EventList::const_iterator> range;