LCOV - code coverage report
Current view: top level - synthesis/TransformMachines - CFStore.cc (source / functions) Hit Total Coverage
Test: ctest_coverage.info Lines: 10 30 33.3 %
Date: 2023-11-06 10:06:49 Functions: 1 4 25.0 %

          Line data    Source code
       1             : // -*- C++ -*-
       2             : //# CFStore.cc: Implementation of the CFStore class
       3             : //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
       4             : //# Associated Universities, Inc. Washington DC, USA.
       5             : //#
       6             : //# This library is free software; you can redistribute it and/or modify it
       7             : //# under the terms of the GNU Library General Public License as published by
       8             : //# the Free Software Foundation; either version 2 of the License, or (at your
       9             : //# option) any later version.
      10             : //#
      11             : //# This library is distributed in the hope that it will be useful, but WITHOUT
      12             : //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      13             : //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
      14             : //# License for more details.
      15             : //#
      16             : //# You should have received a copy of the GNU Library General Public License
      17             : //# along with this library; if not, write to the Free Software Foundation,
      18             : //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
      19             : //#
      20             : //# Correspondence concerning AIPS++ should be addressed as follows:
      21             : //#        Internet email: aips2-request@nrao.edu.
      22             : //#        Postal address: AIPS++ Project Office
      23             : //#                        National Radio Astronomy Observatory
      24             : //#                        520 Edgemont Road
      25             : //#                        Charlottesville, VA 22903-2475 USA
      26             : //#
      27             : //# $Id$
      28             : #include <synthesis/TransformMachines/CFStore.h>
      29             : using namespace casacore;
      30             : namespace casa{
      31             : 
      32         524 :   CFStore& CFStore::operator=(const CFStore& other)
      33             :   {
      34         524 :     if (&other != this)
      35             :       {
      36         524 :         data=other.data; 
      37         524 :         rdata=other.rdata; 
      38         524 :         coordSys=other.coordSys; 
      39         524 :         sampling.assign(other.sampling);
      40         524 :         xSupport.assign(other.xSupport);
      41         524 :         ySupport.assign(other.ySupport);
      42         524 :         pa=other.pa;
      43             :       }
      44         524 :     return *this;
      45             :   };
      46             : 
      47           0 :   void CFStore::show(const char *Mesg, ostream& os)
      48             :   {
      49           0 :     if (!null())
      50             :       {
      51           0 :         if (Mesg != NULL)
      52           0 :           os << Mesg << endl;
      53           0 :         os << "Data Shape: " << data->shape() << endl;
      54           0 :         os << "Sampling: " << sampling << endl;
      55           0 :         os << "xSupport: " << xSupport << endl;
      56           0 :         os << "ySupport: " << ySupport << endl;
      57           0 :         os << "PA = " << pa.get("deg") << endl
      58             :           ;
      59             :       }
      60           0 :   };
      61             :   
      62           0 :   void CFStore::resize(Int nw,  Bool retainValues)
      63             :   {
      64           0 :     xSupport.resize(nw,retainValues); ySupport.resize(nw,retainValues);
      65           0 :     sampling.resize(1);
      66           0 :   }
      67           0 :   void CFStore::resize(IPosition imShape, Bool retainValues)
      68             :   {
      69           0 :     if (imShape.nelements() > CFDefs::NWPOS)
      70           0 :       resize(imShape(CFDefs::NWPOS), retainValues);
      71           0 :     if ((imShape.nelements() > 0) && (!data.null()))
      72           0 :       data->resize(imShape,retainValues);
      73           0 :   }
      74             : } // end casa namespace

Generated by: LCOV version 1.16