Subversion Repositories gelsvn

Rev

Rev 89 | Rev 561 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 89 Rev 117
Line 120... Line 120...
120
	  data[1] = _b;
120
	  data[1] = _b;
121
	  data[2] = _c;
121
	  data[2] = _c;
122
	  data[3] = _d;
122
	  data[3] = _d;
123
	}
123
	}
124
 
124
 
125
      /// Const index operator
125
  /// Const index operator
126
      const T& operator [] ( unsigned int i ) const
126
  const T& operator [] ( unsigned int i ) const
127
	{
127
	{
128
	  assert(i<N);
128
	  assert(i<N);
129
	  return data[i];
129
	  return data[i];
130
	}
130
	}
131
 
131
 
132
      /// Non-const index operator
132
  /// Non-const index operator
133
      T& operator [] ( unsigned int i ) 
133
  T& operator [] ( unsigned int i ) 
134
	{
134
	{
135
	  assert(i<N);
135
	  assert(i<N);
136
	  return data[i];
136
	  return data[i];
137
	}
137
	}
138
 
138
 
-
 
139
	/// Const index operator
-
 
140
  const T& operator () ( unsigned int i ) const
-
 
141
	{
-
 
142
	  assert(i<N);
-
 
143
	  return data[i];
-
 
144
	}
-
 
145
 
-
 
146
  /// Non-const index operator
-
 
147
  T& operator () ( unsigned int i ) 
-
 
148
	{
-
 
149
	  assert(i<N);
-
 
150
	  return data[i];
-
 
151
	}
-
 
152
 
-
 
153
 
139
      /** Get a pointer to first element in data array.
154
      /** Get a pointer to first element in data array.
140
	  This function may be useful when interfacing with some other API 
155
	  This function may be useful when interfacing with some other API 
141
	  such as OpenGL (TM) */
156
	  such as OpenGL (TM) */
142
      T* get() {return &data[0];}
157
      T* get() {return &data[0];}
143
 
158