casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NumericTraits2.h
Go to the documentation of this file.
1 //# NumericTraits2.h: Specialisations of the NumericTraits class
2 //# Copyright (C) 1996,1997,2000
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 //#
27 //# $Id$
28 
29 #ifndef SCIMATH_NUMERICTRAITS2_H
30 #define SCIMATH_NUMERICTRAITS2_H
31 
32 #include <casacore/casa/aips.h>
34 
35 namespace casacore { //# NAMESPACE CASACORE - BEGIN
36 
37 // <summary> A specialisation for T=Float of the NumericTraits class </summary>
38 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
39 // </reviewed>
40 template <> class NumericTraits<Float> {
41 public:
44  static const Double & epsilon;
45  static const Double & minimum;
46  static const Double & maximum;
47 };
48 
49 // <summary> A specialisation for T=Double of the NumericTraits class </summary>
50 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
51 // </reviewed>
52 template <> class NumericTraits<Double> {
53 public:
56  static const Double & epsilon;
57  static const Double & minimum;
58  static const Double & maximum;
59 };
60 
61 // <summary> A specialisation for T=Complex of the NumericTraits class </summary>
62 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
63 // </reviewed>
64 template <> class NumericTraits<Complex> {
65 public:
68  static const Double & epsilon;
69  static const Double & minimum;
70  static const Double & maximum;
71 };
72 
73 // <summary> A specialisation for T=DComplex of the NumericTraits class </summary>
74 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
75 // </reviewed>
76 // <use visibility=local>
77 //
78 // <synopsis>
79 // This file contains specialisations of the templated NumericTraits class.
80 // See the description in
81 // <linkto file="NumericTraits.h#summary">NumericTraits.h</linkto>
82 // for a summary of the purpose and usage of this class and its
83 // specialisations.
84 // </synopsis>
85 
86 template <> class NumericTraits<DComplex> {
87 public:
90  static const Double & epsilon;
91  static const Double & minimum;
92  static const Double & maximum;
93 };
94 
95 
96 } //# NAMESPACE CASACORE - END
97 
98 #endif
static const Double & maximum
static const Double & minimum
static const Double & epsilon
Relationships between numeric data types.
static const Double & maximum
static const Double & minimum
double Double
Definition: aipstype.h:55
float Float
Definition: aipstype.h:54
static const Double & epsilon
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42