Changeset 1423 in Sophya
- Timestamp:
- Feb 23, 2001, 2:57:40 PM (25 years ago)
- Location:
- trunk/SophyaLib/SkyMap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/localmap.h
r1419 r1423 186 186 //////////////////////////////////////////////////////////////// 187 187 // Surcharge d'operateurs A (+,-,*,/) (T) x 188 /*! \ingroup LocalMap \fn operator+(const LocalMap<T>&,T)188 /*! \ingroup SkyMap \fn operator+(const LocalMap<T>&,T) 189 189 \brief Operator LocalMap = LocalMap + constant */ 190 190 template <class T> inline LocalMap<T> operator + (const LocalMap<T>& a, T b) 191 191 {LocalMap<T> result; result.CloneOrShare(a); result.SetTemp(true); 192 192 result.Add(b); return result;} 193 /*! \ingroup LocalMap \fn operator+(T,const LocalMap<T>&)193 /*! \ingroup SkyMap \fn operator+(T,const LocalMap<T>&) 194 194 \brief Operator LocalMap = constant + LocalMap */ 195 195 template <class T> inline LocalMap<T> operator + (T b,const LocalMap<T>& a) … … 198 198 199 199 200 /*! \ingroup LocalMap\fn operator-(const LocalMap<T>&,T)200 /*! \ingroup SkyMap\fn operator-(const LocalMap<T>&,T) 201 201 \brief Operator LocalMap = LocalMap - constant */ 202 202 template <class T> inline LocalMap<T> operator - (const LocalMap<T>& a, T b) … … 210 210 result.Sub(b,true); return result;} 211 211 212 /*! \ingroup LocalMap \fn operator*(const LocalMap<T>&,T)212 /*! \ingroup SkyMap \fn operator*(const LocalMap<T>&,T) 213 213 \brief Operator LocalMap = LocalMap * constant */ 214 214 template <class T> inline LocalMap<T> operator * (const LocalMap<T>& a, T b) … … 216 216 result.Mul(b); return result;} 217 217 218 /*! \ingroup LocalMap \fn operator*(T,const LocalMap<T>&)218 /*! \ingroup SkyMap \fn operator*(T,const LocalMap<T>&) 219 219 \brief Operator LocalMap = constant * LocalMap */ 220 220 template <class T> inline LocalMap<T> operator * (T b,const LocalMap<T>& a) … … 222 222 result.Mul(b); return result;} 223 223 224 /*! \ingroup LocalMap \fn operator/(const LocalMap<T>&,T)224 /*! \ingroup SkyMap \fn operator/(const LocalMap<T>&,T) 225 225 \brief Operator LocalMap = LocalMap / constant */ 226 226 template <class T> inline LocalMap<T> operator / (const LocalMap<T>& a, T b) … … 228 228 result.Div(b); return result;} 229 229 230 /*! \ingroup LocalMap \fn operator/(T,const LocalMap<T>&)230 /*! \ingroup SkyMap \fn operator/(T,const LocalMap<T>&) 231 231 \brief Operator LocalMap = constant / LocalMap */ 232 232 template <class T> inline LocalMap<T> operator / (T b, const LocalMap<T>& a) … … 237 237 // Surcharge d'operateurs C = A (+,-) B 238 238 239 /*! \ingroup LocalMap \fn operator+(const LocalMap<T>&,const LocalMap<T>&)239 /*! \ingroup SkyMap \fn operator+(const LocalMap<T>&,const LocalMap<T>&) 240 240 \brief Operator LocalMap = LocalMap + LocalMap */ 241 241 template <class T> … … 246 246 return result; } 247 247 248 /*! \ingroup LocalMap \fn operator-(const LocalMap<T>&,const LocalMap<T>&)248 /*! \ingroup SkyMap \fn operator-(const LocalMap<T>&,const LocalMap<T>&) 249 249 \brief Operator LocalMap = LocalMap - LocalMap */ 250 250 template <class T> -
trunk/SophyaLib/SkyMap/spherehealpix.h
r1419 r1423 209 209 //////////////////////////////////////////////////////////////// 210 210 // Surcharge d'operateurs A (+,-,*,/) (T) x 211 /*! \ingroup S phereHEALPix\fn operator+(const SphereHEALPix<T>&,T)211 /*! \ingroup SkyMap \fn operator+(const SphereHEALPix<T>&,T) 212 212 \brief Operator SphereHEALPix = SphereHEALPix + constant */ 213 213 template <class T> inline SphereHEALPix<T> operator + (const SphereHEALPix<T>& a, T b) 214 214 {SphereHEALPix<T> result; result.CloneOrShare(a); result.SetTemp(true); 215 215 result.Add(b); return result;} 216 /*! \ingroup S phereHEALPix\fn operator+(T,const SphereHEALPix<T>&)216 /*! \ingroup SkyMap \fn operator+(T,const SphereHEALPix<T>&) 217 217 \brief Operator SphereHEALPix = constant + SphereHEALPix */ 218 218 template <class T> inline SphereHEALPix<T> operator + (T b,const SphereHEALPix<T>& a) … … 233 233 result.Sub(b,true); return result;} 234 234 235 /*! \ingroup S phereHEALPix\fn operator*(const SphereHEALPix<T>&,T)235 /*! \ingroup SkyMap \fn operator*(const SphereHEALPix<T>&,T) 236 236 \brief Operator SphereHEALPix = SphereHEALPix * constant */ 237 237 template <class T> inline SphereHEALPix<T> operator * (const SphereHEALPix<T>& a, T b) … … 239 239 result.Mul(b); return result;} 240 240 241 /*! \ingroup S phereHEALPix\fn operator*(T,const SphereHEALPix<T>&)241 /*! \ingroup SkyMap \fn operator*(T,const SphereHEALPix<T>&) 242 242 \brief Operator SphereHEALPix = constant * SphereHEALPix */ 243 243 template <class T> inline SphereHEALPix<T> operator * (T b,const SphereHEALPix<T>& a) … … 245 245 result.Mul(b); return result;} 246 246 247 /*! \ingroup S phereHEALPix\fn operator/(const SphereHEALPix<T>&,T)247 /*! \ingroup SkyMap \fn operator/(const SphereHEALPix<T>&,T) 248 248 \brief Operator SphereHEALPix = SphereHEALPix / constant */ 249 249 template <class T> inline SphereHEALPix<T> operator / (const SphereHEALPix<T>& a, T b) … … 251 251 result.Div(b); return result;} 252 252 253 /*! \ingroup S phereHEALPix\fn operator/(T,const SphereHEALPix<T>&)253 /*! \ingroup SkyMap \fn operator/(T,const SphereHEALPix<T>&) 254 254 \brief Operator SphereHEALPix = constant / SphereHEALPix */ 255 255 template <class T> inline SphereHEALPix<T> operator / (T b, const SphereHEALPix<T>& a) … … 260 260 // Surcharge d'operateurs C = A (+,-) B 261 261 262 /*! \ingroup S phereHEALPix\fn operator+(const SphereHEALPix<T>&,const SphereHEALPix<T>&)262 /*! \ingroup SkyMap \fn operator+(const SphereHEALPix<T>&,const SphereHEALPix<T>&) 263 263 \brief Operator SphereHEALPix = SphereHEALPix + SphereHEALPix */ 264 264 template <class T> … … 269 269 return result; } 270 270 271 /*! \ingroup S phereHEALPix\fn operator-(const SphereHEALPix<T>&,const SphereHEALPix<T>&)271 /*! \ingroup SkyMap \fn operator-(const SphereHEALPix<T>&,const SphereHEALPix<T>&) 272 272 \brief Operator SphereHEALPix = SphereHEALPix - SphereHEALPix */ 273 273 template <class T> -
trunk/SophyaLib/SkyMap/spherethetaphi.h
r1419 r1423 263 263 //////////////////////////////////////////////////////////////// 264 264 // Surcharge d'operateurs A (+,-,*,/) (T) x 265 /*! \ingroup S phereThetaPhi\fn operator+(const SphereThetaPhi<T>&,T)265 /*! \ingroup SkyMap \fn operator+(const SphereThetaPhi<T>&,T) 266 266 \brief Operator SphereThetaPhi = SphereThetaPhi + constant */ 267 267 template <class T> inline SphereThetaPhi<T> operator + (const SphereThetaPhi<T>& a, T b) 268 268 {SphereThetaPhi<T> result; result.CloneOrShare(a); result.SetTemp(true); 269 269 result.Add(b); return result;} 270 /*! \ingroup S phereThetaPhi\fn operator+(T,const SphereThetaPhi<T>&)270 /*! \ingroup SkyMap \fn operator+(T,const SphereThetaPhi<T>&) 271 271 \brief Operator SphereThetaPhi = constant + SphereThetaPhi */ 272 272 template <class T> inline SphereThetaPhi<T> operator + (T b,const SphereThetaPhi<T>& a) … … 287 287 result.Sub(b,true); return result;} 288 288 289 /*! \ingroup S phereThetaPhi\fn operator*(const SphereThetaPhi<T>&,T)289 /*! \ingroup SkyMap \fn operator*(const SphereThetaPhi<T>&,T) 290 290 \brief Operator SphereThetaPhi = SphereThetaPhi * constant */ 291 291 template <class T> inline SphereThetaPhi<T> operator * (const SphereThetaPhi<T>& a, T b) … … 293 293 result.Mul(b); return result;} 294 294 295 /*! \ingroup S phereThetaPhi\fn operator*(T,const SphereThetaPhi<T>&)295 /*! \ingroup SkyMap \fn operator*(T,const SphereThetaPhi<T>&) 296 296 \brief Operator SphereThetaPhi = constant * SphereThetaPhi */ 297 297 template <class T> inline SphereThetaPhi<T> operator * (T b,const SphereThetaPhi<T>& a) … … 299 299 result.Mul(b); return result;} 300 300 301 /*! \ingroup S phereThetaPhi\fn operator/(const SphereThetaPhi<T>&,T)301 /*! \ingroup SkyMap \fn operator/(const SphereThetaPhi<T>&,T) 302 302 \brief Operator SphereThetaPhi = SphereThetaPhi / constant */ 303 303 template <class T> inline SphereThetaPhi<T> operator / (const SphereThetaPhi<T>& a, T b) … … 305 305 result.Div(b); return result;} 306 306 307 /*! \ingroup S phereThetaPhi\fn operator/(T,const SphereThetaPhi<T>&)307 /*! \ingroup SkyMap \fn operator/(T,const SphereThetaPhi<T>&) 308 308 \brief Operator SphereThetaPhi = constant / SphereThetaPhi */ 309 309 template <class T> inline SphereThetaPhi<T> operator / (T b, const SphereThetaPhi<T>& a) … … 314 314 // Surcharge d'operateurs C = A (+,-) B 315 315 316 /*! \ingroup S phereThetaPhi\fn operator+(const SphereThetaPhi<T>&,const SphereThetaPhi<T>&)316 /*! \ingroup SkyMap \fn operator+(const SphereThetaPhi<T>&,const SphereThetaPhi<T>&) 317 317 \brief Operator SphereThetaPhi = SphereThetaPhi + SphereThetaPhi */ 318 318 template <class T> … … 323 323 return result; } 324 324 325 /*! \ingroup S phereThetaPhi\fn operator-(const SphereThetaPhi<T>&,const SphereThetaPhi<T>&)325 /*! \ingroup SkyMap \fn operator-(const SphereThetaPhi<T>&,const SphereThetaPhi<T>&) 326 326 \brief Operator SphereThetaPhi = SphereThetaPhi - SphereThetaPhi */ 327 327 template <class T>
Note:
See TracChangeset
for help on using the changeset viewer.