casa
5.7.0-16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
casa
casacore
casa
BasicSL
IComplex.h
Go to the documentation of this file.
1
//# IComplex.h: Integer complex number
2
//# Copyright (C) 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 addressed 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
//# $Id$
27
28
29
#ifndef CASA_ICOMPLEX_H
30
#define CASA_ICOMPLEX_H
31
32
//# Includes
33
34
#include <
casacore/casa/aips.h
>
35
#include <
casacore/casa/iosfwd.h
>
36
37
namespace
casacore
{
//# NAMESPACE CASACORE - BEGIN
38
39
// <summary>
40
// Integer complex numbers.
41
// </summary>
42
// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
43
// </reviewed>
44
45
// <synopsis>
46
// The class <src>IComplex</src> is only a container for FITS usage.
47
// </synopsis>
48
49
class
IComplex
{
50
public
:
51
//# Constructors
52
// From one or two ints (note for gnu use)
53
// <group>
54
IComplex
() :
re
(0),
im
(0) {;};
55
IComplex
(
Int
r) :
re
(r),
im
(0) {;};
56
IComplex
(
Int
r,
Int
i) :
re
(r),
im
(i) {;};
57
// </group>
58
59
//# Member functions
60
// For use in FITS classes only
61
// <group>
62
Int
real
()
const
{
return
re
; };
63
Int
imag
()
const
{
return
im
; };
64
// </group>
65
66
private
:
67
Int
re
;
68
Int
im
;
69
};
70
71
72
// Show on ostream.
73
ostream &
operator<<
(ostream &os,
const
IComplex
&);
74
75
76
77
}
//# NAMESPACE CASACORE - END
78
79
#endif
casacore::Int
int Int
Definition:
aipstype.h:50
casacore::IComplex::imag
Int imag() const
Definition:
IComplex.h:63
aips.h
casacore::IComplex::real
Int real() const
For use in FITS classes only.
Definition:
IComplex.h:62
casacore::IComplex::IComplex
IComplex(Int r, Int i)
Definition:
IComplex.h:56
casacore::operator<<
ostream & operator<<(ostream &os, const std::pair< T, U > &p)
casacore::IComplex::IComplex
IComplex(Int r)
Definition:
IComplex.h:55
casacore::IComplex::im
Int im
Definition:
IComplex.h:68
casacore::IComplex::re
Int re
Definition:
IComplex.h:63
casacore::IComplex
Integer complex numbers.
Definition:
IComplex.h:49
iosfwd.h
casacore::IComplex::IComplex
IComplex()
From one or two ints (note for gnu use)
Definition:
IComplex.h:54
casacore
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
Definition:
X11Intrinsic.h:42
Generated on Sun Sep 1 2019 23:32:11 for casa by
1.8.5