Revision 1921 trunk/src/linad99/f7arr.cpp

f7arr.cpp (revision 1921)
216 216
 */
217 217
    dvar6_array& dvar7_array::operator ( ) (int i)
218 218
    {
219
      #ifdef SAFE_ARRAYS
220 219
      if (i < indexmin() || i > indexmax())
221 220
      {
222 221
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
223 222
        "dvar6_array& dvar7_array::operator () (int i)",
224 223
        indexmin(), indexmax(), i);
225 224
      }
226
      #endif
227 225
      return t[i];
228 226
    }
229 227

  
......
233 231
 */
234 232
    dvar6_array& dvar7_array::operator [] (int i)
235 233
    {
236
      #ifdef SAFE_ARRAYS
237 234
      if (i < indexmin() || i > indexmax())
238 235
      {
239 236
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
240 237
        "dvar6_array& dvar7_array::operator [] (int i)",
241 238
        indexmin(), indexmax(), i);
242 239
      }
243
      #endif
244 240
      return t[i];
245 241
    }
246 242

  
......
250 246
 */
251 247
    dvar5_array& dvar7_array::operator ( ) (int i ,int j)
252 248
    {
253
      #ifdef SAFE_ARRAYS
254 249
      if (i < indexmin() || i > indexmax())
255 250
      {
256 251
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
257 252
        "dvar5_array& dvar7_array::operator ( ) (int i, int j)",
258 253
        indexmin(), indexmax(), i);
259 254
      }
260
      #endif
261 255
      return elem(i)(j);
262 256
    }
263 257

  
......
267 261
 */
268 262
    dvar4_array& dvar7_array::operator ( ) (int i,int j,int k)
269 263
    {
270
      #ifdef SAFE_ARRAYS
271 264
      if (i < indexmin() || i > indexmax())
272 265
      {
273 266
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
274 267
        "dvar4_array& dvar7_array::operator ( ) (int i, int j, int k)",
275 268
        indexmin(), indexmax(), i);
276 269
      }
277
      #endif
278 270
      return elem(i)(j,k);
279 271
    }
280 272

  
......
284 276
 */
285 277
    dvar3_array& dvar7_array::operator ( ) (int i,int j,int k,int l)
286 278
    {
287
      #ifdef SAFE_ARRAYS
288 279
      if (i < indexmin() || i > indexmax())
289 280
      {
290 281
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
291 282
        "dvar3_array& dvar7_array::operator ( ) (int i, int j, int k, int l)",
292 283
        indexmin(), indexmax(), i);
293 284
      }
294
      #endif
295 285
      return elem(i)(j,k,l);
296 286
    }
297 287

  
......
301 291
 */
302 292
    dvar_matrix& dvar7_array::operator ( ) (int i,int j,int k,int l,int m)
303 293
    {
304
      #ifdef SAFE_ARRAYS
305 294
      if (i < indexmin() || i > indexmax())
306 295
      {
307 296
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
308 297
   "dvar_matrix& dvar7_array::operator ( ) (int i, int j, int k, int l, int m)",
309 298
        indexmin(), indexmax(), i);
310 299
      }
311
      #endif
312 300
      return elem(i)(j,k,l,m);
313 301
    }
314 302

  
......
318 306
 */
319 307
dvar_vector& dvar7_array::operator ( ) (int i,int j,int k,int l,int m, int n)
320 308
    {
321
      #ifdef SAFE_ARRAYS
322 309
      if (i < indexmin() || i > indexmax())
323 310
      {
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff