Ocean
Ocean::TypeMapper< T > Class Template Reference

This class provides a unique data type for any data type. More...

Public Types

typedef TypeMapperBySize< sizeof(T)>::Type Type
 Definition of an invalid mapped data type. More...
 

Detailed Description

template<typename T>
class Ocean::TypeMapper< T >

This class provides a unique data type for any data type.

The class can be used to reduce binary size of template functions with code mainly defined by the size of a data type instead of the data type itself.
This class provides the following mapping:

Data type:            Resulting mapped data type
bool                  unsigned char
char                  unsigned char
signed char           unsigned char
unsigned char         unsigned char
short                 unsigned short
unsigned short        unsigned short
int                   unsigned int
unsigned int          unsigned int
float                 unsigned int
long long             unsigned long long
unsigned long long    unsigned long long
double                unsigned long long
Template Parameters
TThe data type for which a corresponding data type will be determined, with possible sizeof {1, 2, 4, 8}
See also
TypeMapperBySize.

Member Typedef Documentation

◆ Type

template<typename T >
typedef TypeMapperBySize<sizeof(T)>::Type Ocean::TypeMapper< T >::Type

Definition of an invalid mapped data type.


The documentation for this class was generated from the following file: