mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Inline and constify Interval helpers
This commit is contained in:
@@ -31,18 +31,6 @@ double Interval::element(int i) {
|
||||
return m_intervalBuffer[i];
|
||||
}
|
||||
|
||||
double Interval::start() {
|
||||
return m_start;
|
||||
}
|
||||
|
||||
double Interval::end() {
|
||||
return m_end;
|
||||
}
|
||||
|
||||
double Interval::step() {
|
||||
return m_step;
|
||||
}
|
||||
|
||||
void Interval::setStart(double f) {
|
||||
m_start = f;
|
||||
m_needCompute = true;
|
||||
|
||||
@@ -11,9 +11,9 @@ public:
|
||||
int numberOfElements();
|
||||
void deleteElementAtIndex(int index);
|
||||
double element(int i);
|
||||
double start();
|
||||
double end();
|
||||
double step();
|
||||
double start() const { return m_start; }
|
||||
double end() const { return m_end; }
|
||||
double step() const { return m_step; }
|
||||
void setStart(double f);
|
||||
void setEnd(double f);
|
||||
void setStep(double f);
|
||||
@@ -31,7 +31,7 @@ private:
|
||||
};
|
||||
|
||||
typedef void (Interval::*SetterPointer)(double);
|
||||
typedef double (Interval::*GetterPointer)();
|
||||
typedef double (Interval::*GetterPointer)() const;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user