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

Definition at line 57 of file offtns.hpp.

00057                                      {
00058          if(_owndata) { 
00059                 if(_m>0 && _n>0 && _p>0) { delete[] _data; _data = NULL; } 
00060          }
00061          _m = C._m; _n=C._n; _p=C._p;   _s = C._s; _t=C._t; _u=C._u; _owndata=C._owndata;
00062          if(_owndata) {
00063                 if(_m>0 && _n>0 && _p>0) { _data = new F[_m*_n*_p]; assert( _data!=NULL ); } else _data=NULL;
00064                 if(_m>0 && _n>0 && _p>0) { for(int i=0; i<_m*_n*_p; i++) _data[i] = C._data[i]; }
00065          } else {
00066                 _data = C._data;
00067          }
00068          return *this;
00069   }


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