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

#include <NdbTypesUtil.hpp>

Inheritance diagram for NumTypeHelper< T >:
Collaboration diagram for NumTypeHelper< T >:

Public Types

typedef NumTypeTraits< T >::SignedT SignedT
typedef NumTypeTraits< T >
::UnsignedT 
UnsignedT
- Public Types inherited from NumTypeTraits< T >
typedef NumTypeMap< T >::DomainT DomainT
typedef NumTypeMap< T >::SignedT SignedT
typedef NumTypeMap< T >::UnsignedT UnsignedT

Static Public Member Functions

static SignedT asSigned (T t)
static UnsignedT asUnsigned (T t)
static void load (T *t, const char *s)
static void store (char *t, const T *s)
- Static Public Member Functions inherited from NumTypeTraits< T >
static bool isIntegral ()
static bool isSigned ()
static Uint32 size ()
static T lowest ()
static T highest ()
static T smallest ()

Detailed Description

template<typename T>
struct NumTypeHelper< T >

Basic Helper functions for numeric NDB types.

As another design option, these helper functions could be defined as individual function templates, which'd allow for implicit function resolution based on the parameter type but, on the other hand, required distinct value types for all data (i.e., an Int24 value type).

Definition at line 208 of file NdbTypesUtil.hpp.


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