MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NumTypeTraits< T > Struct Template Reference

#include <NdbTypesUtil.hpp>

Inheritance diagram for NumTypeTraits< T >:

Public Types

typedef NumTypeMap< T >::DomainT DomainT
typedef NumTypeMap< T >::SignedT SignedT
typedef NumTypeMap< T >::UnsignedT UnsignedT

Static Public Member Functions

static bool isIntegral ()
static bool isSigned ()
static Uint32 size ()
static T lowest ()
static T highest ()
static T smallest ()

Detailed Description

template<typename T>
struct NumTypeTraits< T >

Common Traits of NDB numeric types.

Notes: the C++ stdlib offers limits as part of std::numeric_limits; its bounds definitions result in a non-uniform usage over different data types, with min() referring to the smallest positive value for float and double, but lowest negative value for integral types. In contrast, this Traits class's functions lowest() and smallest() support a uniform usage.

Definition at line 95 of file NdbTypesUtil.hpp.


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