Revision 1921 trunk/src/linad99/f6arr.cpp

f6arr.cpp (revision 1921)
193 193
 */
194 194
    dvar5_array& dvar6_array::operator ( ) (int i)
195 195
    {
196
      #ifdef SAFE_ARRAYS
197 196
      if (i < indexmin() || i > indexmax())
198 197
      {
199 198
        ADMB_ARRAY_BOUNDS_ERROR("index out of bounds",
200 199
        "dvar5_array& dvar6_array::operator()(int i)",
201 200
        indexmin(), indexmax(), i);
202 201
      }
203
      #endif
204 202
      return t[i];
205 203
    }
206 204

  
......
210 208
 */
211 209
    dvar5_array& dvar6_array::operator [] (int i)
212 210
    {
213
      #ifdef SAFE_ARRAYS
214 211
      if (i < indexmin() || i > indexmax())
215 212
      {
216 213
        ADMB_ARRAY_BOUNDS_ERROR("index out of bounds",
217 214
        "dvar5_array& dvar6_array::operator[](int i)",
218 215
        indexmin(), indexmax(), i);
219 216
      }
220
      #endif
221 217
      return t[i];
222 218
    }
223 219

  
......
227 223
 */
228 224
    dvar4_array& dvar6_array::operator ( ) (int i ,int j)
229 225
    {
230
      #ifdef SAFE_ARRAYS
231 226
      if (i < indexmin() || i > indexmax())
232 227
      {
233 228
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
234 229
        "dvar5_array& dvar6_array::operator()(int i, int j)",
235 230
        indexmin(), indexmax(), i);
236 231
      }
237
      #endif
238 232
      return elem(i)(j);
239 233
    }
240 234

  
......
244 238
 */
245 239
    dvar3_array& dvar6_array::operator ( ) (int i,int j,int k)
246 240
    {
247
      #ifdef SAFE_ARRAYS
248 241
      if (i < indexmin() || i > indexmax())
249 242
      {
250 243
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
251 244
        "dvar5_array& dvar6_array::operator()(int i, int j, int k)",
252 245
        indexmin(), indexmax(), i);
253 246
      }
254
      #endif
255 247
      return elem(i)(j,k);
256 248
    }
257 249

  
......
261 253
 */
262 254
    dvar_matrix& dvar6_array::operator ( ) (int i,int j,int k,int l)
263 255
    {
264
      #ifdef SAFE_ARRAYS
265 256
      if (i < indexmin() || i > indexmax())
266 257
      {
267 258
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
268 259
        "dvar_matrix& dvar6_array::operator()(int i, int j, int k, int l)",
269 260
        indexmin(), indexmax(), i);
270 261
      }
271
      #endif
272 262
      return elem(i)(j,k,l);
273 263
    }
274 264

  
......
278 268
 */
279 269
    dvar_vector& dvar6_array::operator ( ) (int i,int j,int k,int l,int m)
280 270
    {
281
      #ifdef SAFE_ARRAYS
282 271
      if (i < indexmin() || i > indexmax())
283 272
      {
284 273
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
285 274
      "dvar_vector& dvar6_array::operator()(int i, int j, int k, int l, int m)",
286 275
        indexmin(), indexmax(), i);
287 276
      }
288
      #endif
289 277
      return elem(i)(j,k,l,m);
290 278
    }
291 279

  
......
296 284
    prevariable dvar6_array::operator ( ) (int i,int j,int k,int l,int m,
297 285
      int n)
298 286
    {
299
      #ifdef SAFE_ARRAYS
300 287
      if (i < indexmin() || i > indexmax())
301 288
      {
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff