DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
NumberTraits.cpp
1 
29 
30 #include "DGtal/kernel/NumberTraits.h"
32 
33 #include <iostream>
34 
35 using namespace std;
36 
37 
38 
40 // class Common
42 
46 namespace DGtal
47 {
48  //Constant definitions in NumberTraits specializations.
53 
58 
63 
68 
69  const float NumberTraits<float>::ONE = 1.0f;
70  const float NumberTraits<float>::ZERO = 0.0f;
71 
72  const double NumberTraits<double>::ONE = 1.0;
73  const double NumberTraits<double>::ZERO = 0.0;
74 
75  const long double NumberTraits<long double>::ONE = 1.0;
76  const long double NumberTraits<long double>::ZERO = 0.0;
77 
78 #ifdef WITH_BIGINTEGER
79  const DGtal::BigInteger NumberTraits<DGtal::BigInteger>::ONE = 1;
80  const DGtal::BigInteger NumberTraits<DGtal::BigInteger>::ZERO = 0;
81 #endif
82 
83 }