casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Iterate.h
Go to the documentation of this file.
1 //# Iterate.h:
2 //# Copyright (C) 1996,2000,2001
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 adressed as follows:
20 //# Internet email: aips2-request@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 //#
27 //# $Id$
28 
29 #ifndef SYNTHESIS_ITERATE_H
30 #define SYNTHESIS_ITERATE_H
31 
32 #include <casa/aips.h>
33 #include <casa/BasicSL/String.h>
35 
36 
37 namespace casa { //# NAMESPACE CASA - BEGIN
38 
39 // Base class for Iteration
40 class Iterate {
41 public:
42  // Constructor
44  tolerance_(0.000001), threshold_(0.0), free_(false), mode_("") {};
45 
46  virtual ~Iterate() {};
47 
48  // Is this a free variable?
49  void setFree()
50  {free_=true;};
51  void setNotFree()
52  {free_=false;};
54  {return(free_);};
55 
57  void setGain(const casacore::Float g) {gain_=g;};
60  void setMode(const casacore::String m) {mode_=m;};
61 
63  casacore::Float gain() {return gain_;};
65  virtual casacore::Float threshold() {return threshold_;};
66  const casacore::String mode() {return mode_;};
67 
68 private:
75 };
76 
77 
78 } //# NAMESPACE CASA - END
79 
80 #endif
int Int
Definition: aipstype.h:50
casacore::Bool free_
Definition: Iterate.h:73
virtual casacore::Float threshold()
Definition: Iterate.h:65
void setTolerance(const casacore::Float t)
Definition: Iterate.h:58
virtual ~Iterate()
Definition: Iterate.h:46
void setNumberIterations(const casacore::Int n)
Definition: Iterate.h:56
casacore::Float tolerance()
Definition: Iterate.h:64
void setGain(const casacore::Float g)
Definition: Iterate.h:57
Iterate()
Constructor.
Definition: Iterate.h:43
casacore::Float gain()
Definition: Iterate.h:63
void setMode(const casacore::String m)
Definition: Iterate.h:60
casacore::Int numberIterations_
Definition: Iterate.h:66
void setThreshold(const casacore::Float t)
Definition: Iterate.h:59
double Double
Definition: aipstype.h:55
const casacore::String mode()
Definition: Iterate.h:66
void setNotFree()
Definition: Iterate.h:51
casacore::Double gain_
Definition: Iterate.h:70
casacore::String mode_
Definition: Iterate.h:74
casacore::Double tolerance_
Definition: Iterate.h:71
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
float Float
Definition: aipstype.h:54
casacore::Int numberIterations()
Definition: Iterate.h:62
void setFree()
Is this a free variable?
Definition: Iterate.h:49
casacore::Double threshold_
Definition: Iterate.h:72
String: the storage and methods of handling collections of characters.
Definition: String.h:223
Base class for Iteration.
Definition: Iterate.h:40
casacore::Bool free()
Definition: Iterate.h:53