| 1 |
|
/*========================================================================= |
| 2 |
|
|
| 3 |
|
Program: Insight Segmentation & Registration Toolkit |
| 4 |
|
Module: $RCSfile: itkNumericTraits.cxx.html,v $ |
| 5 |
|
Language: C++ |
| 6 |
|
Date: $Date: 2006/01/17 19:15:42 $ |
| 7 |
|
Version: $Revision: 1.4 $ |
| 8 |
|
|
| 9 |
|
Copyright (c) Insight Software Consortium. All rights reserved. |
| 10 |
|
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. |
| 11 |
|
|
| 12 |
|
This software is distributed WITHOUT ANY WARRANTY; without even |
| 13 |
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 14 |
|
PURPOSE. See the above copyright notices for more information. |
| 15 |
|
|
| 16 |
DEF |
=========================================================================*/ |
| 17 |
|
#include "itkNumericTraits.h" |
| 18 |
|
|
| 19 |
|
namespace itk |
| 20 |
|
{ |
| 21 |
|
|
| 22 |
|
const bool NumericTraits<bool>::Zero = false; |
| 23 |
|
const bool NumericTraits<bool>::One = true; |
| 24 |
|
|
| 25 |
|
const unsigned char NumericTraits<unsigned char>::Zero = 0; |
| 26 |
|
const unsigned char NumericTraits<unsigned char>::One = 1; |
| 27 |
|
|
| 28 |
|
const signed char NumericTraits<signed char>::Zero = 0; |
| 29 |
|
const signed char NumericTraits<signed char>::One = 1; |
| 30 |
|
|
| 31 |
|
const char NumericTraits<char>::Zero = 0; |
| 32 |
|
const char NumericTraits<char>::One = 1; |
| 33 |
|
|
| 34 |
|
const unsigned short NumericTraits<unsigned short>::Zero = 0; |
| 35 |
|
const unsigned short NumericTraits<unsigned short>::One = 1; |
| 36 |
|
|
| 37 |
|
const short NumericTraits<short>::Zero = 0; |
| 38 |
|
const short NumericTraits<short>::One = 1; |
| 39 |
|
|
| 40 |
|
const unsigned int NumericTraits<unsigned int>::Zero = 0; |
| 41 |
|
const unsigned int NumericTraits<unsigned int>::One = 1; |
| 42 |
|
|
| 43 |
|
const int NumericTraits<int>::Zero = 0; |
| 44 |
|
const int NumericTraits<int>::One = 1; |
| 45 |
|
|
| 46 |
|
const unsigned long NumericTraits<unsigned long>::Zero = 0; |
| 47 |
|
const unsigned long NumericTraits<unsigned long>::One = 1; |
| 48 |
|
|
| 49 |
|
const long NumericTraits<long>::Zero = 0UL; |
| 50 |
|
const long NumericTraits<long>::One = 1UL; |
| 51 |
|
|
| 52 |
|
const float NumericTraits<float>::Zero = 0.0F; |
| 53 |
|
const float NumericTraits<float>::One = 1.0F; |
| 54 |
|
|
| 55 |
|
const double NumericTraits<double>::Zero = 0.0; |
| 56 |
|
const double NumericTraits<double>::One = 1.0; |
| 57 |
|
|
| 58 |
|
const long double NumericTraits<long double>::Zero = 0.0; |
| 59 |
|
const long double NumericTraits<long double>::One = 1.0; |
| 60 |
|
|
| 61 |
LEN |
const std::complex<float> NumericTraits< std::complex<float> >::Zero = std::complex<float>(0.0,0.0); |
| 62 |
LEN |
const std::complex<float> NumericTraits< std::complex<float> >::One = std::complex<float>(1.0,0.0); |
| 63 |
|
|
| 64 |
LEN |
const std::complex<double> NumericTraits< std::complex<double> >::Zero = std::complex<double>(0.0,0.0); |
| 65 |
LEN |
const std::complex<double> NumericTraits< std::complex<double> >::One = std::complex<double>(1.0,0.0); |
| 66 |
|
|
| 67 |
|
} // end namespace itk |
| 68 |
|
|