template<class F>
NumTns& NumTns< F >::operator= const NumTns< F > &  C  )  [inline]
 

Definition at line 72 of file numtns.hpp.

00072                                      {
00073          if(_owndata) { 
00074                 if(_m>0 && _n>0 && _p>0) { delete[] _data; _data = NULL; } 
00075          }
00076          _m = C._m; _n=C._n; _p=C._p; _owndata=C._owndata;
00077          if(_owndata) {
00078                 if(_m>0 && _n>0 && _p>0) { _data = new F[_m*_n*_p]; assert( _data!=NULL ); } else _data=NULL;
00079                 if(_m>0 && _n>0 && _p>0) { for(int i=0; i<_m*_n*_p; i++) _data[i] = C._data[i]; }
00080          } else {
00081                 _data = C._data;
00082          }
00083          return *this;
00084   }


Generated on Sun Dec 4 18:13:13 2005 for common by  doxygen 1.4.5