17 return m_numberOfElements;
22 for (
int k = index; k < m_numberOfElements; k++) {
23 m_intervalBuffer[k] = m_intervalBuffer[k+1];
25 m_intervalBuffer[m_numberOfElements] = 0.0f;
31 return m_intervalBuffer[i];
64 m_intervalBuffer[i] = f;
70 void Interval::computeElements() {
74 if ( m_start > m_end) {
75 m_numberOfElements = 0;
80 for (
int i = 0; i < m_numberOfElements; i += 1) {
81 m_intervalBuffer[i] = m_start + i * m_step;
83 m_needCompute =
false;
void setElement(int i, double f)
static constexpr int k_maxNumberOfElements
void deleteElementAtIndex(int index)