Changeset 1353


Ignore:
Timestamp:
04/26/07 14:55:17 (17 years ago)
Author:
mar637
Message:

added explicit keyword for single arument constructors

Location:
trunk/src
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/LineCatalog.h

    r1295 r1353  
    3535    * @param name the name of the ASCII file or aips++ table
    3636    */
    37   LineCatalog(const std::string& name = "jpl");
     37  explicit LineCatalog(const std::string& name = "jpl");
    3838
    3939  virtual ~LineCatalog() {}
  • trunk/src/Logger.h

    r1106 r1353  
    3636   * @param[in] enabled indicating the deafult state
    3737   */ 
    38   Logger(bool enabled);
     38  explicit Logger(bool enabled);
    3939
    4040  /*
  • trunk/src/RowAccumulator.h

    r1295 r1353  
    3333   * Constructor taking a weight type as defined in @ref STDefs
    3434   */
    35   RowAccumulator(WeightType wt = asap::NONE);
     35  explicit RowAccumulator(WeightType wt = asap::NONE);
    3636
    3737 ~RowAccumulator();
  • trunk/src/STFiller.h

    r1060 r1353  
    5151   * @param stbl
    5252   */
    53   STFiller(casa::CountedPtr< Scantable > stbl);
     53  explicit STFiller(casa::CountedPtr< Scantable > stbl);
    5454
    5555
     
    6060    * @param whichBeam read a specific beam only (default -1 means all beams)
    6161    */
    62   STFiller( const std::string& filename, int whichIF=-1,
     62  explicit STFiller( const std::string& filename, int whichIF=-1,
    6363                  int whichBeam=-1 );
    6464
  • trunk/src/STFillerWrapper.h

    r872 r1353  
    2727//#                        AUSTRALIA
    2828//#
    29 //# $Id:$
     29//# $Id$
    3030//#---------------------------------------------------------------------------
    3131#ifndef STFILLERWRAPPER_H
     
    4242public:
    4343  STFillerWrapper() {;}
    44   STFillerWrapper(const std::string& filename, int ifSel=-1, int beamSel=-1) :
     44  explicit STFillerWrapper(const std::string& filename, int ifSel=-1, int beamSel=-1) :
    4545     STFiller(filename, ifSel, beamSel) {;}
    46   STFillerWrapper(ScantableWrapper tbl) :
     46  explicit STFillerWrapper(ScantableWrapper tbl) :
    4747    STFiller(tbl.getCP()){;}
    4848  ScantableWrapper getScantable() const {
  • trunk/src/STFit.h

    r972 r1353  
    3131public:
    3232  STFit() {;}
    33   STFit(casa::Table tab);
    34   STFit( const Scantable& parent);
     33  explicit STFit(casa::Table tab);
     34  explicit STFit( const Scantable& parent);
    3535
    3636  virtual ~STFit();
  • trunk/src/STFocus.h

    r957 r1353  
    3030public:
    3131  STFocus() {;}
    32   STFocus(casa::Table tab);
    33   STFocus( const Scantable& parent );
     32  explicit STFocus(casa::Table tab);
     33  explicit STFocus( const Scantable& parent );
    3434
    3535  virtual ~STFocus();
  • trunk/src/STFrequencies.h

    r921 r1353  
    3232public:
    3333  STFrequencies() {;}
    34   STFrequencies(casa::Table tab);
    35   STFrequencies(const Scantable& parent);
     34  explicit STFrequencies(casa::Table tab);
     35  explicit STFrequencies(const Scantable& parent);
    3636
    3737  virtual ~STFrequencies();
  • trunk/src/STHistory.h

    r860 r1353  
    3030public:
    3131  STHistory() {;}
    32   STHistory(casa::Table tab);
    33   STHistory( const Scantable& parent );
     32  explicit STHistory(casa::Table tab);
     33  explicit STHistory( const Scantable& parent );
    3434
    3535  virtual ~STHistory();
  • trunk/src/STLineFinder.h

    r991 r1353  
    8383                                           // start channel and stop+1
    8484   public:
    85         IntersectsWith(const std::pair<int,int> &in_line1);
     85       explicit IntersectsWith(const std::pair<int,int> &in_line1);
    8686        // return true if line2 intersects with line1 with at least one
    8787        // common channel, and false otherwise
     
    9595                                           // start channel and stop+1
    9696   public:
    97         BuildUnion(const std::pair<int,int> &line1);
     97        explicit BuildUnion(const std::pair<int,int> &line1);
    9898        // update temp_line with a union of temp_line and new_line
    9999        // provided there is no gap between the lines
     
    109109                                           // start channel and stop+1
    110110   public:
    111         LaterThan(const std::pair<int,int> &in_line1);
     111        explicit LaterThan(const std::pair<int,int> &in_line1);
    112112
    113113        // return true if line2 should be placed later than line1
  • trunk/src/STMath.h

    r1308 r1353  
    4646  * @param insitu the toggle for this behaviour
    4747  */
    48   STMath(bool insitu=true);
     48  explicit STMath(bool insitu=true);
    4949
    5050  virtual ~STMath();
  • trunk/src/STMathWrapper.h

    r1308 r1353  
    3232public:
    3333  STMathWrapper() {;}
    34   STMathWrapper(bool insitu) : STMath(insitu) {;}
     34  explicit STMathWrapper(bool insitu) : STMath(insitu) {;}
    3535
    3636  virtual ~STMathWrapper() {;}
  • trunk/src/STMolecules.h

    r870 r1353  
    3030public:
    3131  STMolecules() {;}
    32   STMolecules(casa::Table tab);
    33   STMolecules( const Scantable& parent);
     32  explicit STMolecules(casa::Table tab);
     33  explicit STMolecules( const Scantable& parent);
    3434
    3535  virtual ~STMolecules();
  • trunk/src/STPolCircular.h

    r1189 r1353  
    4040  STPolCircular() {}
    4141
    42   STPolCircular(const casa::Matrix<casa::Float>& specs)
     42  explicit STPolCircular(const casa::Matrix<casa::Float>& specs)
    4343    { setSpectra(specs); }
    4444
  • trunk/src/STPolLinear.h

    r1007 r1353  
    3939  STPolLinear() {}
    4040
    41   STPolLinear(const casa::Matrix<casa::Float>& specs)
     41  explicit STPolLinear(const casa::Matrix<casa::Float>& specs)
    4242    { setSpectra(specs); }
    4343
  • trunk/src/STPolStokes.h

    r910 r1353  
    2828  STPolStokes() {}
    2929
    30   STPolStokes(const casa::Matrix<casa::Float>& specs)
     30  explicit STPolStokes(const casa::Matrix<casa::Float>& specs)
    3131    { setSpectra(specs); }
    3232
  • trunk/src/STTcal.h

    r856 r1353  
    3131public:
    3232  STTcal() {;}
    33   STTcal(casa::Table tab);
    34   STTcal( const Scantable& parent);
     33  explicit STTcal(casa::Table tab);
     34  explicit STTcal( const Scantable& parent);
    3535
    3636  virtual ~STTcal();
  • trunk/src/STWeather.h

    r856 r1353  
    3030public:
    3131  STWeather() {;}
    32   STWeather(casa::Table tab);
    33   STWeather( const Scantable& parent);
     32  explicit STWeather(casa::Table tab);
     33  explicit STWeather(const Scantable& parent);
    3434
    3535  virtual ~STWeather();
  • trunk/src/STWriter.h

    r995 r1353  
    5555class STWriter : public Logger {
    5656public:
    57   STWriter(const string &format = "SDFITS");
     57  explicit STWriter(const string &format = "SDFITS");
    5858  virtual ~STWriter();
    5959
  • trunk/src/STWriterWrapper.h

    r995 r1353  
    4545  //STWriterWrapper() {;}
    4646  virtual ~STWriterWrapper() {;}
    47   STWriterWrapper(const string& format = "SDFITS") : STWriter(format) {;}
     47  explicit STWriterWrapper(const string& format = "SDFITS") : STWriter(format) {;}
    4848
    4949  casa::Int write(const ScantableWrapper& table, const string &filename) {
Note: See TracChangeset for help on using the changeset viewer.