IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LowerType.h
Go to the documentation of this file.
1 // LowerType.h:
3 // ---------------
4 //
13 
14 #ifndef __IPSDKUTIL_INSTRUCTIONSET_LOWERTYPE_H__
15 #define __IPSDKUTIL_INSTRUCTIONSET_LOWERTYPE_H__
16 
18 
19 
20 namespace ipsdk {
21 
24 
25 
41 template <typename T>
42 struct LowerType
43 {
44 };
45 
47 template <> struct LowerType<ipInt8 > { typedef ipInt8 Type; };
48 template <> struct LowerType<ipUInt8 > { typedef ipUInt8 Type; };
49 template <> struct LowerType<ipInt16 > { typedef ipInt8 Type; };
50 template <> struct LowerType<ipUInt16> { typedef ipUInt8 Type; };
51 template <> struct LowerType<ipInt32 > { typedef ipInt16 Type; };
52 template <> struct LowerType<ipUInt32> { typedef ipUInt16 Type; };
53 template <> struct LowerType<ipReal32> { typedef ipReal32 Type; };
54 template <> struct LowerType<ipInt64 > { typedef ipInt32 Type; };
55 template <> struct LowerType<ipUInt64> { typedef ipUInt32 Type; };
56 template <> struct LowerType<ipReal64> { typedef ipReal32 Type; };
58 
61 
62 } // end of namespace ipsdk
63 
64 #endif // __IPSDKUTIL_INSTRUCTIONSET_LOWERTYPE_H__
int8_t ipInt8
Base types definition.
Definition: BaseTypes.h:48
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
int32_t ipInt32
Base types definition.
Definition: BaseTypes.h:52
int16_t ipInt16
Base types definition.
Definition: BaseTypes.h:50
uint8_t ipUInt8
Base types definition.
Definition: BaseTypes.h:49
Definition of import/export macro for library.
template structure LowerType<typename T>; its typedef Type gives the type just lower to T...
Definition: LowerType.h:42
int64_t ipInt64
Base types definition.
Definition: BaseTypes.h:54
uint16_t ipUInt16
Base types definition.
Definition: BaseTypes.h:51
float ipReal32
Base types definition.
Definition: BaseTypes.h:56
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53