ITK  5.4.0
Insight Toolkit
itkIsNumber.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * https://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef itkIsNumber_h
20 #define itkIsNumber_h
21 
23 #include "itkIntTypes.h"
24 
25 namespace itk
26 {
28 namespace mpl
29 {
36 template <typename T>
37 struct IsNumber : FalseType
38 {};
39 
41 template <>
42 struct IsNumber<unsigned char> : TrueType
43 {};
44 template <>
45 struct IsNumber<signed char> : TrueType
46 {};
47 template <>
48 struct IsNumber<unsigned short> : TrueType
49 {};
50 template <>
51 struct IsNumber<short> : TrueType
52 {};
53 template <>
54 struct IsNumber<int> : TrueType
55 {};
56 template <>
57 struct IsNumber<unsigned int> : TrueType
58 {};
59 template <>
60 struct IsNumber<long> : TrueType
61 {};
62 template <>
63 struct IsNumber<unsigned long> : TrueType
64 {};
65 template <>
66 struct IsNumber<long long> : TrueType
67 {};
68 template <>
69 struct IsNumber<unsigned long long> : TrueType
70 {};
71 template <>
72 struct IsNumber<float> : TrueType
73 {};
74 template <>
75 struct IsNumber<double> : TrueType
76 {};
77 template <>
78 struct IsNumber<long double> : TrueType
79 {};
81 
82 } // end namespace mpl
84 } // end namespace itk
85 
86 #endif // itkIsNumber_h
itkMetaProgrammingLibrary.h
itkIntTypes.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24