Revision 1921 trunk/src/linad99/d7arr.cpp

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

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

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

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

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

  
......
235 223
 */
236 224
    dvector& d7_array::operator ( ) (int i,int j,int k,int l,int m,int n)
237 225
    {
238
      #ifdef SAFE_ARRAYS
239 226
      if (i < indexmin() || i > indexmax())
240 227
      {
241 228
        ADMB_ARRAY_BOUNDS_ERROR("hslice index out of bounds",
242 229
      "dvector& d7_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