Ignore:
Timestamp:
11/28/05 15:25:18 (19 years ago)
Author:
mar637
Message:

removed setmask functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTableWrapper.h

    r717 r745  
    8686  }
    8787
    88   std::vector<float> getStokesSpectrum(int whichRow=0, 
    89                                        bool linPol=false) const {
     88  std::vector<float> getStokesSpectrum(int whichRow=0,
     89                                       bool linPol=false) const {
    9090    return table_->getStokesSpectrum(whichRow, linPol);
    9191  }
    9292
    9393  std::vector<float> stokesToPolSpectrum(int whichRow=0, bool linear=false,
    94                                         int polIdx=-1) const {
     94                                        int polIdx=-1) const {
    9595    return table_->stokesToPolSpectrum(whichRow, linear, polIdx);
    9696  }
     
    9898  //  std::string getPolarizationLabel(bool linear, bool stokes, bool linPol, int polIdx) const {
    9999  // Boost fails with 4 arguments.
    100   std::string getPolarizationLabel(bool linear, bool stokes, 
    101                                    bool linPol) const {
     100  std::string getPolarizationLabel(bool linear, bool stokes,
     101                                   bool linPol) const {
    102102    int polIdx = -1;
    103103    return table_->getPolarizationLabel(linear, stokes, linPol, polIdx);
     
    130130    return table_->getMask(whichRow);
    131131  }
    132   bool setMask(const std::vector<int> mvals) const {
    133     return table_->setMask(mvals);
    134   }
    135132
    136133  void flag(int whichRow=-1) {
     
    169166  }
    170167
    171   bool setRestFreqs(const std::vector<double>& restfreqs, 
    172                     const std::string& unit, 
     168  bool setRestFreqs(const std::vector<double>& restfreqs,
     169                    const std::string& unit,
    173170                    const std::vector<std::string>& lines,
    174171                    const std::string& source, int whichIF) {
     
    178175                                casa::Int(whichIF));
    179176  }
    180  
    181   std::string spectralLines() const {table_->spectralLines();}
     177
     178  std::string spectralLines() const {return table_->spectralLines();}
    182179
    183180  std::vector<double> getRestFreqs() {
     
    195192  SDMemTable* getPtr() {return &(*table_);}
    196193
    197   std::string summary(bool verbose=false) const { 
    198     return table_->summary(verbose); 
    199   }
    200  
    201   std::vector<std::string> getHistory() { 
    202     return table_->getHistory(); 
    203   }
    204   void addHistory(const std::string& hist) { 
    205     table_->addHistory(hist); 
     194  std::string summary(bool verbose=false) const {
     195    return table_->summary(verbose);
     196  }
     197
     198  std::vector<std::string> getHistory() {
     199    return table_->getHistory();
     200  }
     201  void addHistory(const std::string& hist) {
     202    table_->addHistory(hist);
    206203  }
    207204
    208205  void addFit(int whichRow, const std::vector<double>& p,
    209               const std::vector<bool>& m, const std::vector<string>& f,
    210               const std::vector<int>& c) {
    211    
     206              const std::vector<bool>& m, const std::vector<string>& f,
     207              const std::vector<int>& c) {
     208
    212209    casa::Vector<casa::Double> p2(p);
    213     casa::Vector<casa::Bool> m2(m); 
     210    casa::Vector<casa::Bool> m2(m);
    214211    casa::Vector<casa::String> f2 = mathutil::toVectorString(f);
    215212    casa::Vector<casa::Int> c2(c);
Note: See TracChangeset for help on using the changeset viewer.