LCOV - code coverage report
Current view: top level - synthesis/CalTables - CalIter.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 12 0.0 %
Date: 2024-10-04 18:58:15 Functions: 0 5 0.0 %

          Line data    Source code
       1             : //# CalIter.cc: Implementation of CalIter.h
       2             : //# Copyright (C) 1996,1997,1998,2001,2002,2003
       3             : //# Associated Universities, Inc. Washington DC, USA.
       4             : //#
       5             : //# This library is free software; you can redistribute it and/or modify it
       6             : //# under the terms of the GNU Library General Public License as published by
       7             : //# the Free Software Foundation; either version 2 of the License, or (at your
       8             : //# option) any later version.
       9             : //#
      10             : //# This library is distributed in the hope that it will be useful, but WITHOUT
      11             : //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      12             : //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
      13             : //# License for more details.
      14             : //#
      15             : //# You should have received a copy of the GNU Library General Public License
      16             : //# along with this library; if not, write to the Free Software Foundation,
      17             : //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
      18             : //#
      19             : //# Correspondence concerning AIPS++ should be addressed as follows:
      20             : //#        Internet email: casa-feedback@nrao.edu.
      21             : //#        Postal address: AIPS++ Project Office
      22             : //#                        National Radio Astronomy Observatory
      23             : //#                        520 Edgemont Road
      24             : //#                        Charlottesville, VA 22903-2475 USA
      25             : //#
      26             : //# $Id$
      27             : //----------------------------------------------------------------------------
      28             : 
      29             : #include <synthesis/CalTables/CalIter.h>
      30             : #include <casacore/casa/Containers/Block.h>
      31             : #include <msvis/MSVis/MSCalEnums.h>
      32             : 
      33             : using namespace casacore;
      34             : namespace casa { //# NAMESPACE CASA - BEGIN
      35             : 
      36             : //----------------------------------------------------------------------------
      37             : 
      38           0 : CalIter::CalIter (CalTable& calTable) : calTable_p(&calTable)
      39             : {
      40             : // Construct from a calibration table
      41             : // Input:
      42             : //    calTable       const CalTable&              Calibration table
      43             : // Output to private data:
      44             : //    calTable_p     CalTable*                    Ptr to calibration table
      45             : //
      46           0 : };
      47             : 
      48             : //----------------------------------------------------------------------------
      49             : 
      50           0 : CalIter::CalIter (CalTable& calTable, const Vector<Int>& iterIndices,
      51           0 :                   Sort::Order order, Sort::Option option) : 
      52           0 :   calTable_p(NULL)
      53             : {
      54             : // Construct from a calibration table and set of iteration indices
      55             : // Input:
      56             : //    calTable       CalTable&                    Calibration table
      57             : //    iterIndices    const Vector<Int>&           Iteration indices
      58             : //    order          Sort::Order                  Iteration order
      59             : //    option         Sort::Option                 Iteration sort option
      60             : // Output to private data:
      61             : //    calTable_p     CalTable*                    Ptr to calibration table
      62             : //
      63             :   // Sort the input calibration table on the specified iteration indices
      64           0 :   calTable_p = new CalTable (calTable.sort (MSC::fieldNames(iterIndices), 
      65           0 :                                             order, option));
      66           0 : };
      67             : 
      68             : //----------------------------------------------------------------------------
      69             : 
      70           0 : CalIter::~CalIter()
      71             : {
      72             : // Null destructor
      73           0 : };
      74             : 
      75             : //----------------------------------------------------------------------------
      76             : 
      77           0 : CalTable& CalIter::subTable() 
      78             : {
      79             : // Return the current iteration sub-table
      80             : // Input from private data:
      81             : //    calTable_p     CalTable*                    Ptr to calibration table
      82             : //
      83           0 :   return *calTable_p;
      84             : };
      85             : 
      86             : //----------------------------------------------------------------------------
      87             : 
      88             : } //# NAMESPACE CASA - END
      89             : 

Generated by: LCOV version 1.16