Changeset 908 in Sophya for trunk/SophyaLib/SkyMap/spherethetaphi.h
- Timestamp:
- Apr 13, 2000, 3:31:18 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherethetaphi.h
r840 r908 42 42 */ 43 43 SphereThetaPhi(int_4 m); 44 SphereThetaPhi(const SphereThetaPhi<T>& s, bool share=false); 44 SphereThetaPhi(const SphereThetaPhi<T>& s, bool share); 45 SphereThetaPhi(const SphereThetaPhi<T>& s); 45 46 virtual ~SphereThetaPhi(); 46 47 48 // Temporaire? 49 inline virtual bool IsTemp(void) const { 50 51 if ( NPhi_.IsTemp() != pixels_.IsTemp() || 52 TNphi_.IsTemp() != pixels_.IsTemp()|| 53 Theta_.IsTemp() != pixels_.IsTemp() ) 54 throw PException(" l'etat 'temporaire' de la spherethetaphi est incoherent"); 55 return pixels_.IsTemp(); 56 } 47 57 /*! Setting blockdata to temporary (see ndatablock documentation) */ 48 inline virtual void SetTemp(bool temp=false) const {pixels_.SetTemp(temp);}; 58 inline virtual void SetTemp(bool temp=false) const 59 { 60 NPhi_.SetTemp(temp); 61 TNphi_.SetTemp(temp); 62 Theta_.SetTemp(temp); 63 pixels_.SetTemp(temp); 64 }; 49 65 50 66 // ------------ Definition of PixelMap abstract methods - … … 164 180 /* impression */ 165 181 void print(ostream& os) const; 182 183 inline SphereThetaPhi<T>& operator = (const SphereThetaPhi<T>& a) 184 {return Set(a);} 185 166 186 167 187 private : … … 175 195 NTheta_= nbThetaIndex; 176 196 } 197 void CloneOrShare(const SphereThetaPhi<T>& a); 198 199 SphereThetaPhi<T>& Set(const SphereThetaPhi<T>& a); 177 200 178 201 // ------------- variables internes ---------------------
Note:
See TracChangeset
for help on using the changeset viewer.