ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkIntTypes.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 #ifndef itkIntTypes_h
19 #define itkIntTypes_h
20 
21 #include "itkMacro.h"
22 
23 #include <cstdint>
24 #include <climits>
25 
26 namespace itk
27 {
28 using int8_t = ::int8_t;
36 
45 
54 
57 
60 
61 
62 #if defined(ITK_USE_64BITS_IDS) && ((ULLONG_MAX != ULONG_MAX) || (LLONG_MAX != LONG_MAX))
63 
66 using SizeValueType = uint64_t;
67 
71 
73 using IndexValueType = int64_t;
74 
77 using OffsetValueType = int64_t;
78 
79 #else
80 
83 using SizeValueType = unsigned long;
84 
88 
90 using IndexValueType = signed long;
91 
94 using OffsetValueType = signed long;
95 
96 #endif
97 
99 using ThreadIdType = unsigned int;
100 
104 using ModifiedTimeType = unsigned long;
105 
106 }
107 
108 #endif /* itkIntTypes_h */
::uint_fast64_t uint_fast64_t
Definition: itkIntTypes.h:53
::uint_fast32_t uint_fast32_t
Definition: itkIntTypes.h:51
unsigned long SizeValueType
Definition: itkIntTypes.h:83
::int_fast32_t int_fast32_t
Definition: itkIntTypes.h:50
::int_least32_t int_least32_t
Definition: itkIntTypes.h:41
::intptr_t intptr_t
Definition: itkIntTypes.h:58
::uint8_t uint8_t
Definition: itkIntTypes.h:29
::int_least16_t int_least16_t
Definition: itkIntTypes.h:39
SizeValueType IdentifierType
Definition: itkIntTypes.h:87
::uintmax_t uintmax_t
Definition: itkIntTypes.h:56
signed long IndexValueType
Definition: itkIntTypes.h:90
::uint16_t uint16_t
Definition: itkIntTypes.h:31
::int_fast16_t int_fast16_t
Definition: itkIntTypes.h:48
::uintptr_t uintptr_t
Definition: itkIntTypes.h:59
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:104
::uint_fast16_t uint_fast16_t
Definition: itkIntTypes.h:49
::uint32_t uint32_t
Definition: itkIntTypes.h:33
::int_least8_t int_least8_t
Definition: itkIntTypes.h:37
unsigned int ThreadIdType
Definition: itkIntTypes.h:99
::intmax_t intmax_t
Definition: itkIntTypes.h:55
::uint_fast8_t uint_fast8_t
Definition: itkIntTypes.h:47
::int_least64_t int_least64_t
Definition: itkIntTypes.h:43
::uint_least32_t uint_least32_t
Definition: itkIntTypes.h:42
::int64_t int64_t
Definition: itkIntTypes.h:34
::uint_least8_t uint_least8_t
Definition: itkIntTypes.h:38
::int_fast8_t int_fast8_t
Definition: itkIntTypes.h:46
::int8_t int8_t
Definition: itkIntTypes.h:28
::uint_least64_t uint_least64_t
Definition: itkIntTypes.h:44
::int32_t int32_t
Definition: itkIntTypes.h:32
::uint64_t uint64_t
Definition: itkIntTypes.h:35
signed long OffsetValueType
Definition: itkIntTypes.h:94
::uint_least16_t uint_least16_t
Definition: itkIntTypes.h:40
::int16_t int16_t
Definition: itkIntTypes.h:30
::int_fast64_t int_fast64_t
Definition: itkIntTypes.h:52