Changeset 2885 in Sophya for trunk/SophyaLib/SkyMap/spherehealpix.cc
- Timestamp:
- Jan 4, 2006, 2:36:47 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherehealpix.cc
r2869 r2885 113 113 nPix_ = s.nPix_; 114 114 omeg_ = s.omeg_; 115 if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);115 if(s.mInfo_) this->mInfo_= new DVList(*s.mInfo_); 116 116 } 117 117 //++ … … 126 126 nPix_ = s.nPix_; 127 127 omeg_ = s.omeg_; 128 if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);128 if(s.mInfo_) this->mInfo_= new DVList(*s.mInfo_); 129 129 // CloneOrShare(s); 130 130 } … … 141 141 sliceBeginIndex_.CloneOrShare(a.sliceBeginIndex_); 142 142 sliceLenght_.CloneOrShare(a.sliceLenght_); 143 if ( mInfo_) {delete mInfo_;mInfo_ = NULL;}144 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));143 if (this->mInfo_) {delete this->mInfo_; this->mInfo_ = NULL;} 144 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 145 145 } 146 146 … … 155 155 sliceBeginIndex_.Share(a.sliceBeginIndex_); 156 156 sliceLenght_.Share(a.sliceLenght_); 157 if ( mInfo_) {delete mInfo_;mInfo_ = NULL;}158 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));157 if (this->mInfo_) {delete this->mInfo_; this->mInfo_ = NULL;} 158 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 159 159 } 160 160 … … 172 172 173 173 174 if ( mInfo_) deletemInfo_;175 mInfo_ = NULL;176 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));174 if (this->mInfo_) delete this->mInfo_; 175 this->mInfo_ = NULL; 176 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 177 177 } 178 178 return(*this); … … 674 674 void SphereHEALPix<T>::print(ostream& os) const 675 675 { 676 if( mInfo_) os << " DVList Info= " << *mInfo_<< endl;676 if(this->mInfo_) os << " DVList Info= " << *(this->mInfo_) << endl; 677 677 // 678 678 os << " nSide_ = " << nSide_ << endl;
Note:
See TracChangeset
for help on using the changeset viewer.