DGtal
0.6.devel
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
DGtal
kernel
NumberTraits.ih
1
30
31
#include <cstdlib>
32
#include <limits>
34
36
// IMPLEMENTATION of inline methods.
38
40
// ----------------------- Standard services ------------------------------
41
42
46
template
<
typename
T>
47
inline
48
typename
DGtal::NumberTraits<T>::ReturnType
49
DGtal::NumberTraits<T>::zero
()
50
{
51
#if (defined(WIN32))
52
return
0;
53
#else
54
return
ZERO;
55
#endif
56
}
57
61
template
<
typename
T>
62
inline
63
typename
DGtal::NumberTraits<T>::ReturnType
64
DGtal::NumberTraits<T>::one
()
65
{
66
#if (defined(WIN32))
67
return
1;
68
#else
69
return
ONE;
70
#endif
71
}
72
77
template
<
typename
T>
78
inline
79
typename
DGtal::NumberTraits<T>::ReturnType
80
DGtal::NumberTraits<T>::min
()
81
{
82
return
ONE;
83
}
84
89
template
<
typename
T>
90
inline
91
typename
DGtal::NumberTraits<T>::ReturnType
92
DGtal::NumberTraits<T>::max
()
93
{
94
return
ZERO;
95
}
96
101
template
<
typename
T>
102
inline
103
unsigned
int
104
DGtal::NumberTraits<T>::digits
()
105
{
106
return
0;
107
}
108
112
template
<
typename
T>
113
inline
114
DGtal::BoundEnum
115
DGtal::NumberTraits<T>::isBounded
()
116
{
117
return
BOUND_UNKNOWN
;
118
}
119
123
template
<
typename
T>
124
inline
125
DGtal::SignEnum
126
DGtal::NumberTraits<T>::isSigned
()
127
{
128
return
SIGN_UNKNOWN
;
129
}
130
Generated on Wed Dec 19 2012 19:10:32 for DGtal by
1.8.1.1