Revision 1921 trunk/src/linad99/fvar_op4.cpp

fvar_op4.cpp (revision 1921)
37 37
 */
38 38
    prevariable dvar_vector::operator[] (int i)
39 39
    {
40
      #ifdef SAFE_ARRAYS
41 40
        if (i<indexmin())
42 41
        {
43 42
          cerr << "array bound exceeded -- index too low in "
......
50 49
          "prevariable::operator[]";
51 50
          ad_exit(1);
52 51
        }
53
      #endif
54 52
      //((va+i)->nc)++;
55 53
      return (va+i);
56 54
    }
......
61 59
 */
62 60
    prevariable dvar_vector::operator() (int i)
63 61
    {
64
      #ifdef SAFE_ARRAYS
65 62
        if (i<indexmin())
66 63
        {
67 64
          cerr << "array bound exceeded -- index too low in "
......
74 71
          "prevariable::operator()";
75 72
          ad_exit(1);
76 73
        }
77
      #endif
78 74
      //((va+i)->nc)++;
79 75
      return (va+i);
80 76
    }
81
#endif
82 77

  
83
#ifndef OPT_LIB
84 78
/**
85 79
 * Description not yet available.
86 80
 * \param
87 81
 */
88 82
const prevariable dvar_vector::operator[](int i) const
89 83
    {
90
      #ifdef SAFE_ARRAYS
91 84
        if (i<indexmin())
92 85
        {
93 86
          cerr << "array bound exceeded -- index too low in "
......
100 93
          "prevariable::operator[]";
101 94
          ad_exit(1);
102 95
        }
103
      #endif
104 96
      //((va+i)->nc)++;
105 97
      return (va+i);
106 98
    }
......
111 103
 */
112 104
const prevariable dvar_vector::operator()(int i) const
113 105
    {
114
      #ifdef SAFE_ARRAYS
115 106
        if (i<indexmin())
116 107
        {
117 108
          cerr << "array bound exceeded -- index too low in "
......
124 115
          "prevariable::operator()";
125 116
          ad_exit(1);
126 117
        }
127
      #endif
128 118
      //((va+i)->nc)++;
129 119
      return (va+i);
130 120
    }

Also available in: Unified diff