Revision 1921 trunk/src/linad99/d6arr.cpp

d6arr.cpp (revision 1921)
137 137
 */
138 138
    d5_array& d6_array::operator ( ) (int i)
139 139
    {
140
      #ifdef SAFE_ARRAYS
141 140
      if (i < indexmin() || i > indexmax())
142 141
      {
143 142
        ADMB_ARRAY_BOUNDS_ERROR("index out of bounds",
144 143
        "d5_array& d6_array::operator()(int i)", indexmin(), indexmax(), i);
145 144
      }
146
      #endif
147 145
      //return t[i];
148 146
      return elem(i);
149 147
    }
......
154 152
 */
155 153
    d5_array& d6_array::operator [] (int i)
156 154
    {
157
      #ifdef SAFE_ARRAYS
158 155
      if (i < indexmin() || i > indexmax())
159 156
      {
160 157
        ADMB_ARRAY_BOUNDS_ERROR("index out of bounds",
161 158
        "d5_array& d6_array::operator[](int i)", indexmin(), indexmax(), i);
162 159
      }
163
      #endif
164 160
      return t[i];
165 161
    }
166 162

  
......
170 166
 */
171 167
    d4_array& d6_array::operator ( ) (int i ,int j)
172 168
    {
173
      #ifdef SAFE_ARRAYS
174 169
      if (i < indexmin() || i > indexmax())
175 170
      {
176 171
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
177 172
        "d4_array& d6_array::operator()(int i, int j)",
178 173
        indexmin(), indexmax(), i);
179 174
      }
180
      #endif
181 175
      return elem(i)(j);
182 176
    }
183 177

  
......
187 181
 */
188 182
    d3_array& d6_array::operator ( ) (int i,int j,int k)
189 183
    {
190
      #ifdef SAFE_ARRAYS
191 184
      if (i < indexmin() || i > indexmax())
192 185
      {
193 186
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
194 187
        "d3_array& d6_array::operator()(int i, int j, int k)",
195 188
        indexmin(), indexmax(), i);
196 189
      }
197
      #endif
198 190
      return elem(i)(j,k);
199 191
    }
200 192

  
......
204 196
 */
205 197
    dmatrix& d6_array::operator ( ) (int i,int j,int k,int l)
206 198
    {
207
      #ifdef SAFE_ARRAYS
208 199
      if (i < indexmin() || i > indexmax())
209 200
      {
210 201
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
211 202
        "dmatrix& d6_array::operator()(int i, int j, int k, int l)",
212 203
        indexmin(), indexmax(), i);
213 204
      }
214
      #endif
215 205
      return elem(i)(j,k,l);
216 206
    }
217 207

  
......
221 211
 */
222 212
    dvector& d6_array::operator ( ) (int i,int j,int k,int l,int m)
223 213
    {
224
      #ifdef SAFE_ARRAYS
225 214
      if (i < indexmin() || i > indexmax())
226 215
      {
227 216
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
228 217
        "dvector& d6_array::operator()(int i, int j, int k, int l, int m)",
229 218
        indexmin(), indexmax(), i);
230 219
      }
231
      #endif
232 220
      return elem(i)(j,k,l,m);
233 221
    }
234 222

  
......
238 226
 */
239 227
    double& d6_array::operator ( ) (int i,int j,int k,int l,int m,int n)
240 228
    {
241
      #ifdef SAFE_ARRAYS
242 229
      if (i < indexmin() || i > indexmax())
243 230
      {
244 231
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
245 232
     "double& d6_array::operator()(int i, int j, int k, int l, int m, int n)",
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff