Changeset 668 in Sophya for trunk/SophyaLib/SkyT/specrespvector.h
- Timestamp:
- Nov 29, 1999, 3:16:10 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyT/specrespvector.h
r607 r668 2 2 //-------------------------------------------------------------------------- 3 3 // File and Version Information: 4 // $Id: specrespvector.h,v 1. 2 1999-11-20 21:00:53ansari Exp $4 // $Id: specrespvector.h,v 1.3 1999-11-29 14:16:09 ansari Exp $ 5 5 // 6 6 // Description: … … 18 18 #include "specresp.h" 19 19 #include "tvector.h" 20 #include "objfio.h" 20 21 21 22 //------------------------------------ … … 29 30 // ***IMPORTANT*** All frequencies are expressed in GHz (10^9 Hz) 30 31 31 class SpecRespVec : public SpectralResponse 32 { 32 namespace SOPHYA { 33 34 class SpecRespVec : public SpectralResponse 35 { 33 36 34 37 public: 35 38 //Constructor 39 SpecRespVec(); 36 40 SpecRespVec(Vector const & nu, Vector const & fdenu, double numin=0., double numax=1.); 37 41 … … 47 51 48 52 // Acces to Nu and T(nu) vectors 49 inline Vector& getNuVec() { return _vecOfNu; } 50 inline Vector& getTNuVec() { return _vecOfFDeNu; } 51 53 inline Vector& getNuVec() { return _vecOfNu; } ; 54 inline Vector& getTNuVec() { return _vecOfFDeNu; } 55 inline double getNuVec(int i) const { return _vecOfNu(i); } 56 inline double getTNuVec(int i) const { return _vecOfFDeNu(i); } 57 inline int NbElts() const { return _size;} 58 52 59 virtual void Print(ostream& os) const; 53 54 60 55 61 protected: 56 62 Vector _vecOfNu; 57 63 Vector _vecOfFDeNu; 64 int _size; 58 65 }; 59 66 67 // ObjFileIO<SpecRespVec> pour les PPersist 68 inline POutPersist& operator << (POutPersist& os, SpecRespVec & obj) 69 { ObjFileIO<SpecRespVec> fio(&obj); fio.Write(os); return(os);} 70 71 inline PInPersist& operator >> (PInPersist& os, SpecRespVec & obj) 72 { ObjFileIO<SpecRespVec> fio(&obj); fio.Read(os); return(os);} 60 73 74 }; // End of namespace 61 75 #endif
Note:
See TracChangeset
for help on using the changeset viewer.