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
32 
33 namespace casa { //# NAMESPACE CASA - BEGIN
34  class VBStore
35  {
36  public:
37  VBStore():dopsf_p(false) {};
38  ~VBStore() {};
39  inline casacore::Int nRow() {return nRow_p;};
40  inline casacore::Int beginRow() {return beginRow_p;}
41  inline casacore::Int endRow() {return endRow_p;}
42  inline casacore::Int spwID() {return spwID_p;}
43  inline casacore::Bool dopsf() {return dopsf_p;}
54  const VisBuffer& vb() {return *vb_p;}
56 
57  void reference(const VBStore& other)
58  {
59  nRow_p=other.nRow_p; beginRow_p=other.beginRow_p; endRow_p=other.endRow_p;
60  dopsf_p = other.dopsf_p;
62 
63  uvw_p.reference(other.uvw_p);
67  freq_p.reference(other.freq_p);
68  // if (useCorrected_p) correctedCube_p.reference(other.correctedCube_p);
69  // else visCube_p.reference(other.visCube_p);
70  // if (useCorrected_p)
71  // {
72  // correctedCube_p.reference(other.correctedCube_p);
73  // visCube_p.reference(other.correctedCube_p);
74  // }
75  // else visCube_p.reference(other.visCube_p);
79 
80  // uvw_p.assign(other.uvw_p);
81  // rowFlag_p.assign(other.rowFlag_p);
82  // flagCube_p.assign(other.flagCube_p);
83  // imagingWeight_p.assign(other.imagingWeight_p);
84  // freq_p.assign(other.freq_p);
85  // visCube_p.assign(other.visCube_p);
86  // modelCube_p.assign(other.modelCube_p);
87  // correctedCube_p.assign(other.correctedCube_p);
88  }
89 
101  const VisBuffer *vb_p;
106  };
107 
108 } //# NAMESPACE CASA - END
109 #endif
virtual void reference(const Array< T > &other)
Make this matrix a reference to other.
casacore::Cube< casacore::Bool > & flagCube()
Definition: VBStore.h:47
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:45
casacore::Cube< casacore::Complex > & visCube()
Definition: VBStore.h:49
casacore::Cube< casacore::Complex > correctedCube_p
Definition: VBStore.h:95
casacore::Int endRow_p
Definition: VBStore.h:90
casacore::Int endChan_p
Definition: VBStore.h:90
casacore::Double imRefFreq_p
Definition: VBStore.h:102
casacore::Cube< casacore::Complex > modelCube_p
Definition: VBStore.h:95
casacore::Vector< casacore::Int > corrType_p
Definition: VBStore.h:98
casacore::Matrix< casacore::uInt > BLCYi
Definition: VBStore.h:105
casacore::Matrix< casacore::Float > & imagingWeight()
Definition: VBStore.h:48
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::Matrix< casacore::uInt > BLCXi
Definition: VBStore.h:105
casacore::Int spwID_p
Definition: VBStore.h:90
casacore::Int nRow_p
Definition: VBStore.h:90
casacore::Int nDataChan_p
Definition: VBStore.h:90
casacore::Matrix< casacore::uInt > TRCYi
Definition: VBStore.h:105
casacore::Vector< casacore::Bool > & rowFlag()
Definition: VBStore.h:46
CFBStruct cfBSt_p
Definition: VBStore.h:103
casacore::Bool useCorrected()
Definition: VBStore.h:44
casacore::Cube< casacore::Complex > & modelCube()
Definition: VBStore.h:51
casacore::Matrix< casacore::uInt > TRCXi
Definition: VBStore.h:105
casacore::Int endRow()
Definition: VBStore.h:41
double Double
Definition: aipstype.h:55
casacore::Quantity pa()
Definition: VBStore.h:53
casacore::Matrix< casacore::Double > uvw_p
Definition: VBStore.h:91
casacore::Vector< casacore::Double > & freq()
Definition: VBStore.h:50
casacore::Int nDataPol_p
Definition: VBStore.h:90
casacore::Vector< casacore::Int > antenna1_p
Definition: VBStore.h:100
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Double imRefFreq()
Definition: VBStore.h:55
casacore::Int startChan_p
Definition: VBStore.h:90
casacore::Vector< casacore::Int > antenna2_p
Definition: VBStore.h:100
casacore::Int spwID()
Definition: VBStore.h:42
casacore::Vector< casacore::Bool > rowFlag_p
Definition: VBStore.h:92
casacore::Cube< casacore::Complex > & correctedCube()
Definition: VBStore.h:52
casacore::Quantity paQuant_p
Definition: VBStore.h:99
casacore::Int nRow()
Definition: VBStore.h:39
VisBuffers encapsulate one chunk of visibility data for processing.
Definition: VisBuffer.h:153
void reference(const VBStore &other)
Definition: VBStore.h:57
casacore::Bool accumCFs_p
Definition: VBStore.h:104
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:43
casacore::Int beginRow()
Definition: VBStore.h:40
virtual void reference(const Array< T > &other)
Create a reference to &quot;other&quot;, which must be of dimension one.
casacore::Bool conjBeams_p
Definition: VBStore.h:97
casacore::Bool useCorrected_p
Definition: VBStore.h:97
const VisBuffer & vb()
Definition: VBStore.h:54
const VisBuffer * vb_p
Definition: VBStore.h:101