Ignore:
Timestamp:
Apr 13, 2000, 3:31:18 PM (25 years ago)
Author:
ansari
Message:

divers nettoyages : const. de copie, surcharge = etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/spherethetaphi.h

    r840 r908  
    4242*/
    4343SphereThetaPhi(int_4 m);
    44 SphereThetaPhi(const SphereThetaPhi<T>& s, bool share=false);
     44SphereThetaPhi(const SphereThetaPhi<T>& s, bool share);
     45SphereThetaPhi(const SphereThetaPhi<T>& s);
    4546virtual ~SphereThetaPhi();
    4647
     48  // Temporaire?
     49inline 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}
    4757/*! Setting blockdata to temporary (see ndatablock documentation) */
    48 inline virtual void SetTemp(bool temp=false) const {pixels_.SetTemp(temp);};
     58inline 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  };
    4965
    5066// ------------ Definition of PixelMap abstract methods -
     
    164180/* impression */
    165181void print(ostream& os) const;
     182
     183inline  SphereThetaPhi<T>& operator = (const SphereThetaPhi<T>& a)
     184                                                       {return Set(a);}
     185
    166186
    167187private :
     
    175195    NTheta_= nbThetaIndex;
    176196  }
     197void CloneOrShare(const SphereThetaPhi<T>& a);
     198
     199SphereThetaPhi<T>& Set(const SphereThetaPhi<T>& a);
    177200
    178201// ------------- variables internes ---------------------
Note: See TracChangeset for help on using the changeset viewer.