Subversion Repositories gelsvn

Rev

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

Rev 89 Rev 117
Line 134... Line 134...
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