|
SoPlex Doxygen Documentation
|
Go to the documentation of this file.
80 assert(n >= 0 && n < size());
86 assert(n >= 0 && n < size());
126 for (k = 0; k < i; ++k)
127 data[k] = olddata[k];
128 for (; k < size(); ++k)
129 data[k + n] = olddata[k];
137 void insert( int i, int n, const T* p_array)
140 for (n--; n >= 0; --n)
141 data[n + i] = p_array[n];
147 int n = p_array. size();
149 for (n--; n >= 0; --n)
154 void remove( int n = 0, int m = 1)
156 assert(n >= 0 && m >= 0);
157 if (m > 0 && n < size())
160 m -= (n + m <= size()) ? 0 : n + m - size();
166 for (i = 0; i < n; ++i)
167 data[i] = olddata[i];
169 data[i] = olddata[i + m];
194 if (newsize < size())
195 remove(newsize, size() - newsize);
196 else if (newsize > size())
214 for ( int i = 0; i < size(); ++i)
263 #ifdef ENABLE_CONSISTENCY_CHECKS
|