casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VBStore.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //# VBStore.h: Definition of the VBStore 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 #ifndef SYNTHESIS_VBSTORE_H
29 #define SYNTHESIS_VBSTORE_H
31 
32 namespace casa { //# NAMESPACE CASA - BEGIN
33  class VBStore
34  {
35  public:
36  VBStore():dopsf_p(false) {};
37  ~VBStore() {};
38  inline casacore::Int nRow() {return nRow_p;};
39  inline casacore::Int beginRow() {return beginRow_p;}
40  inline casacore::Int endRow() {return endRow_p;}
41  inline casacore::Bool dopsf() {return dopsf_p;}
51 
52  void reference(const VBStore& other)
53  {
54  nRow_p=other.nRow_p; beginRow_p=other.beginRow_p; endRow_p=other.endRow_p;
55  dopsf_p = other.dopsf_p;
56  useCorrected_p = other.useCorrected_p;
57 
58  uvw_p.reference(other.uvw_p);
59  rowFlag_p.reference(other.rowFlag_p);
60  flagCube_p.reference(other.flagCube_p);
61  imagingWeight_p.reference(other.imagingWeight_p);
62  freq_p.reference(other.freq_p);
63  // if (useCorrected_p) correctedCube_p.reference(other.correctedCube_p);
64  // else visCube_p.reference(other.visCube_p);
65  // if (useCorrected_p)
66  // {
67  // correctedCube_p.reference(other.correctedCube_p);
68  // visCube_p.reference(other.correctedCube_p);
69  // }
70  // else visCube_p.reference(other.visCube_p);
71  correctedCube_p.reference(other.correctedCube_p);
72  visCube_p.reference(other.visCube_p);
73  modelCube_p.reference(other.modelCube_p);
74 
75  // uvw_p.assign(other.uvw_p);
76  // rowFlag_p.assign(other.rowFlag_p);
77  // flagCube_p.assign(other.flagCube_p);
78  // imagingWeight_p.assign(other.imagingWeight_p);
79  // freq_p.assign(other.freq_p);
80  // visCube_p.assign(other.visCube_p);
81  // modelCube_p.assign(other.modelCube_p);
82  // correctedCube_p.assign(other.correctedCube_p);
83  }
84 
93  };
94 
95 } //# NAMESPACE CASA - END
96 #endif
virtual void reference(const Array< T > &other)
Make this matrix a reference to other.
casacore::Cube< casacore::Bool > & flagCube()
Definition: VBStore.h:45
casacore::Bool dopsf_p
Definition: VBStore.h:97
int Int
Definition: aipstype.h:50
casacore::Cube< casacore::Complex > visCube_p
Definition: VBStore.h:95
casacore::Int beginRow_p
Definition: VBStore.h:90
casacore::Matrix< casacore::Double > & uvw()
Definition: VBStore.h:43
casacore::Cube< casacore::Complex > & visCube()
Definition: VBStore.h:47
casacore::Cube< casacore::Complex > correctedCube_p
Definition: VBStore.h:95
casacore::Int endRow_p
Definition: VBStore.h:90
casacore::Cube< casacore::Complex > modelCube_p
Definition: VBStore.h:95
casacore::Matrix< casacore::Float > & imagingWeight()
Definition: VBStore.h:46
casacore::Cube< casacore::Bool > flagCube_p
Definition: VBStore.h:93
virtual void reference(const Array< T > &other)
Make this cube a reference to other.
casacore::Int nRow_p
Definition: VBStore.h:90
casacore::Vector< casacore::Bool > & rowFlag()
Definition: VBStore.h:44
casacore::Bool useCorrected()
Definition: VBStore.h:42
casacore::Cube< casacore::Complex > & modelCube()
Definition: VBStore.h:49
casacore::Int endRow()
Definition: VBStore.h:40
casacore::Matrix< casacore::Double > uvw_p
Definition: VBStore.h:91
casacore::Vector< casacore::Double > & freq()
Definition: VBStore.h:48
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Vector< casacore::Bool > rowFlag_p
Definition: VBStore.h:92
casacore::Cube< casacore::Complex > & correctedCube()
Definition: VBStore.h:50
casacore::Int nRow()
Definition: VBStore.h:38
void reference(const VBStore &other)
Definition: VBStore.h:52
casacore::Matrix< casacore::Float > imagingWeight_p
Definition: VBStore.h:94
casacore::Vector< casacore::Double > freq_p
Definition: VBStore.h:96
casacore::Bool dopsf()
Definition: VBStore.h:41
casacore::Int beginRow()
Definition: VBStore.h:39
virtual void reference(const Array< T > &other)
Create a reference to &quot;other&quot;, which must be of dimension one.
casacore::Bool useCorrected_p
Definition: VBStore.h:97