LCOV - code coverage report
Current view: top level - calanalysis/CalAnalysis - CalStatsAXES.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 23 25 92.0 %
Date: 2024-12-11 20:54:31 Functions: 4 4 100.0 %

          Line data    Source code
       1             : 
       2             : // -----------------------------------------------------------------------------
       3             : 
       4             : /*
       5             : 
       6             : CalStatsAXES.cc
       7             : 
       8             : Description:
       9             : ------------
      10             : This file contains member functions for the nested CalStats::AXES class.
      11             : 
      12             : Classes:
      13             : --------
      14             : CalStats::AXES - This nested class contains the axes for the CalStats class.
      15             : 
      16             : Modification history:
      17             : ---------------------
      18             : 2011 Dec 23 - Nick Elias, NRAO
      19             :               Initial version.
      20             : 
      21             : */
      22             : 
      23             : // -----------------------------------------------------------------------------
      24             : // Includes
      25             : // -----------------------------------------------------------------------------
      26             : 
      27             : #include <calanalysis/CalAnalysis/CalStats.h>
      28             : 
      29             : // -----------------------------------------------------------------------------
      30             : // Start of casa namespace
      31             : // -----------------------------------------------------------------------------
      32             : 
      33             : using namespace casacore;
      34             : namespace casa {
      35             : 
      36             : // -----------------------------------------------------------------------------
      37             : // Start of CalStats::AXES nested class
      38             : // -----------------------------------------------------------------------------
      39             : 
      40             : /*
      41             : 
      42             : CalStats::AXES
      43             : 
      44             : Description:
      45             : ------------
      46             : This nested class contains the axes for the CalStats class.
      47             : 
      48             : Class public member functions:
      49             : ------------------------------
      50             : AXES      - This constructor is the default that initializes variables.
      51             : AXES      - This construtor copies the input instance to the present instance.
      52             : ~AXES     - This destructor destroys the instance.
      53             : operator= - This function sets one instance to another.
      54             : 
      55             : Modification history:
      56             : ---------------------
      57             : 2011 Dec 23 - Nick Elias, NRAO
      58             :               Initial version containing AXES() (default), AXES() (copy),
      59             :               ~AXES(), and operator=().
      60             : 
      61             : */
      62             : 
      63             : // -----------------------------------------------------------------------------
      64             : // Start of CalStats::AXES public member functions
      65             : // -----------------------------------------------------------------------------
      66             : 
      67             : /*
      68             : 
      69             : CalStats::AXES::AXES (default)
      70             : 
      71             : Description:
      72             : ------------
      73             : This constructor is the default that initializes variables.
      74             : 
      75             : Inputs:
      76             : -------
      77             : None.
      78             : 
      79             : Outputs:
      80             : --------
      81             : None.
      82             : 
      83             : Modification history:
      84             : ---------------------
      85             : 2011 Dec 23 - Nick Elias, NRAO
      86             :               Initial version.
      87             : 
      88             : */
      89             : 
      90             : // -----------------------------------------------------------------------------
      91             : 
      92        1000 : CalStats::AXES::AXES( void ) {
      93             : 
      94             :   // Initialize the public variables and return
      95             : 
      96        1000 :   eAxisIterFeedID = INIT;
      97        1000 :   eAxisIterUserID = INIT;
      98        1000 :   eAxisNonIterID = INIT;
      99        1000 :   sFeed = String();
     100        1000 :   dAxisIterUser = 0.0;
     101             : 
     102        1000 :   return;
     103             : 
     104           0 : }
     105             : 
     106             : // -----------------------------------------------------------------------------
     107             : 
     108             : /*
     109             : 
     110             : CalStats::AXES::AXES (copy)
     111             : 
     112             : Description:
     113             : ------------
     114             : This construtor copies the input instance to the present instance.
     115             : 
     116             : Inputs:
     117             : -------
     118             : oAxes - This reference to a CalStats::AXES instance contains the axes
     119             :         information.
     120             : 
     121             : Outputs:
     122             : --------
     123             : None.
     124             : 
     125             : Modification history:
     126             : ---------------------
     127             : 2011 Dec 23 - Nick Elias, NRAO
     128             :               Initial version.
     129             : 
     130             : */
     131             : 
     132             : // -----------------------------------------------------------------------------
     133             : 
     134         400 : CalStats::AXES::AXES( const CalStats::AXES& oAxes ) {
     135             : 
     136             :   // Copy the public variables from the input instance to this instance and
     137             :   // return
     138             : 
     139         400 :   eAxisIterFeedID = oAxes.eAxisIterFeedID;
     140         400 :   eAxisIterUserID = oAxes.eAxisIterUserID;
     141         400 :   eAxisNonIterID = oAxes.eAxisNonIterID;
     142         400 :   sFeed = String( oAxes.sFeed );
     143         400 :   dAxisIterUser = oAxes.dAxisIterUser;
     144             : 
     145         400 :   return;
     146             : 
     147           0 : }
     148             : 
     149             : // -----------------------------------------------------------------------------
     150             : 
     151             : /*
     152             : 
     153             : CalStats::AXES::~AXES
     154             : 
     155             : Description:
     156             : ------------
     157             : This destructor destroys the instance.
     158             : 
     159             : Inputs:
     160             : -------
     161             : None.
     162             : 
     163             : Outputs:
     164             : --------
     165             : None.
     166             : 
     167             : Modification history:
     168             : ---------------------
     169             : 2011 Dec 23 - Nick Elias, NRAO
     170             :               Initial version.
     171             : 
     172             : */
     173             : 
     174             : // -----------------------------------------------------------------------------
     175             : 
     176        1400 : CalStats::AXES::~AXES( void ) {}
     177             : 
     178             : // -----------------------------------------------------------------------------
     179             : 
     180             : /*
     181             : 
     182             : CalStats::AXES::operator=
     183             : 
     184             : Description:
     185             : ------------
     186             : This function sets one instance to another.
     187             : 
     188             : Inputs:
     189             : -------
     190             : oAxes - This reference to a CalStats::AXES instance contains the axes
     191             :         information.
     192             : 
     193             : Outputs:
     194             : --------
     195             : None.
     196             : 
     197             : Modification history:
     198             : ---------------------
     199             : 2011 Dec 23 - Nick Elias, NRAO
     200             :               Initial version.
     201             : 
     202             : */
     203             : 
     204             : // -----------------------------------------------------------------------------
     205             : 
     206         800 : CalStats::AXES& CalStats::AXES::operator=( const CalStats::AXES& oAxes ) {
     207             : 
     208             :   // If this instance is not the same as the input instance, copy the public
     209             :   // variables to this one and return
     210             : 
     211         800 :   if ( this != &oAxes ) {
     212         800 :     eAxisIterFeedID = oAxes.eAxisIterFeedID;
     213         800 :     eAxisIterUserID = oAxes.eAxisIterUserID;
     214         800 :     eAxisNonIterID = oAxes.eAxisNonIterID;
     215         800 :     sFeed = String( oAxes.sFeed );
     216         800 :     dAxisIterUser = oAxes.dAxisIterUser;
     217             :   }
     218             :   
     219         800 :   return( *this );
     220             : 
     221             : }
     222             : 
     223             : // -----------------------------------------------------------------------------
     224             : // End of CalStats::AXES public member functions
     225             : // -----------------------------------------------------------------------------
     226             : 
     227             : // -----------------------------------------------------------------------------
     228             : // End of CalStats::AXES nested class
     229             : // -----------------------------------------------------------------------------
     230             : 
     231             : };
     232             : 
     233             : // -----------------------------------------------------------------------------
     234             : // End of casa namespace
     235             : // -----------------------------------------------------------------------------

Generated by: LCOV version 1.16