DGtal  0.9.4beta
Public Types | Static Public Member Functions | Static Public Attributes
DGtal::NumberTraits< long double > Struct Template Reference

#include <DGtal/kernel/NumberTraits.h>

Public Types

typedef TagFalse IsIntegral
 
typedef TagTrue IsBounded
 
typedef TagFalse IsUnsigned
 
typedef TagTrue IsSigned
 
typedef TagTrue IsSpecialized
 
typedef long double SignedVersion
 
typedef long double UnsignedVersion
 
typedef long double ReturnType
 
typedef boost::call_traits< long double >::param_type ParamType
 

Static Public Member Functions

static ReturnType zero ()
 
static ReturnType one ()
 
static ReturnType min ()
 
static ReturnType max ()
 
static unsigned int digits ()
 
static BoundEnum isBounded ()
 
static SignEnum isSigned ()
 
static DGtal::int64_t castToInt64_t (const long double &aT)
 
static double castToDouble (const long double &aT)
 

Static Public Attributes

static const long double ZERO = 0.0
 
static const long double ONE = 1.0
 

Detailed Description

template<>
struct DGtal::NumberTraits< long double >

Specialization for long double.

Definition at line 888 of file NumberTraits.h.

Member Typedef Documentation

typedef TagTrue DGtal::NumberTraits< long double >::IsBounded

Definition at line 891 of file NumberTraits.h.

typedef TagFalse DGtal::NumberTraits< long double >::IsIntegral

Definition at line 890 of file NumberTraits.h.

typedef TagTrue DGtal::NumberTraits< long double >::IsSigned

Definition at line 893 of file NumberTraits.h.

typedef TagTrue DGtal::NumberTraits< long double >::IsSpecialized

Definition at line 894 of file NumberTraits.h.

typedef TagFalse DGtal::NumberTraits< long double >::IsUnsigned

Definition at line 892 of file NumberTraits.h.

typedef boost::call_traits<long double>::param_type DGtal::NumberTraits< long double >::ParamType

Definition at line 898 of file NumberTraits.h.

typedef long double DGtal::NumberTraits< long double >::ReturnType

Definition at line 897 of file NumberTraits.h.

typedef long double DGtal::NumberTraits< long double >::SignedVersion

Definition at line 895 of file NumberTraits.h.

typedef long double DGtal::NumberTraits< long double >::UnsignedVersion

Definition at line 896 of file NumberTraits.h.

Member Function Documentation

static double DGtal::NumberTraits< long double >::castToDouble ( const long double &  aT)
inlinestatic

Definition at line 933 of file NumberTraits.h.

934  {
935  return static_cast<double>(aT);
936  }
static DGtal::int64_t DGtal::NumberTraits< long double >::castToInt64_t ( const long double &  aT)
inlinestatic

Definition at line 929 of file NumberTraits.h.

930  {
931  return static_cast<int64_t>( aT );
932  }
boost::int64_t int64_t
signed 94-bit integer.
Definition: BasicTypes.h:74
static unsigned int DGtal::NumberTraits< long double >::digits ( )
inlinestatic

Definition at line 917 of file NumberTraits.h.

918  {
919  return LDBL_DIG;
920  }
static BoundEnum DGtal::NumberTraits< long double >::isBounded ( )
inlinestatic

Definition at line 921 of file NumberTraits.h.

References DGtal::BOUNDED.

922  {
923  return BOUNDED;
924  }
static SignEnum DGtal::NumberTraits< long double >::isSigned ( )
inlinestatic

Definition at line 925 of file NumberTraits.h.

References DGtal::SIGNED.

926  {
927  return SIGNED;
928  }
static ReturnType DGtal::NumberTraits< long double >::max ( )
inlinestatic

Definition at line 913 of file NumberTraits.h.

914  {
915  return LDBL_MAX;
916  }
static ReturnType DGtal::NumberTraits< long double >::min ( )
inlinestatic

Definition at line 909 of file NumberTraits.h.

910  {
911  return LDBL_MIN;
912  }
static ReturnType DGtal::NumberTraits< long double >::one ( )
inlinestatic

Definition at line 905 of file NumberTraits.h.

906  {
907  return 1.0;
908  }
static ReturnType DGtal::NumberTraits< long double >::zero ( )
inlinestatic

Definition at line 901 of file NumberTraits.h.

902  {
903  return 0.0;
904  }

Field Documentation

const long double DGtal::NumberTraits< long double >::ONE = 1.0
static

Definition at line 900 of file NumberTraits.h.

const long double DGtal::NumberTraits< long double >::ZERO = 0.0
static

Definition at line 899 of file NumberTraits.h.


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