Ignore:
Timestamp:
Apr 28, 2000, 4:12:44 PM (25 years ago)
Author:
ansari
Message:

modifs constructeurs copie et operateur =

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/spherehealpix.cc

    r979 r980  
    261261template<class T>
    262262SphereHEALPix<T>& SphereHEALPix<T>::Set(const SphereHEALPix<T>& a)
    263    {
     263{
    264264  if (this != &a)
    265265    {
    266 
    267   if (a.NbPixels() < 1)
    268     throw RangeCheckError("SphereHEALPix<T>::Set(a ) - Array a not allocated ! ");
    269   if (NbPixels() < 1) CloneOrShare(a);
    270   else CopyElt(a);
    271 
    272 
    273       //     CloneOrShare(a);
    274      if (mInfo_) delete mInfo_;
    275      mInfo_ = NULL;
    276      if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));
     266     
     267      if (a.NbPixels() < 1)
     268        throw RangeCheckError("SphereHEALPix<T>::Set(a ) - Array a not allocated ! ");
     269      if (NbPixels() < 1) CloneOrShare(a);
     270      else CopyElt(a);
     271     
     272     
     273      if (mInfo_) delete mInfo_;
     274      mInfo_ = NULL;
     275      if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));
    277276    }
    278277  return(*this);
    279    }
     278}
    280279
    281280template<class T>
     
    285284    throw RangeCheckError("SphereHEALPix<T>::CopyElt(const SphereHEALPix<T>& )  - Not Allocated Array ! ");
    286285  if (NbPixels() != a.NbPixels())
    287     throw(SzMismatchError("TArray<T>::MultElt(const TArray<T>&) SizeMismatch")) ;
     286    throw(SzMismatchError("SphereHEALPix<T>::CopyElt(const SphereHEALPix<T>&) SizeMismatch")) ;
    288287  nSide_= a.nSide_;
    289288  nPix_ = a.nPix_;
Note: See TracChangeset for help on using the changeset viewer.