DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Static Public Member Functions | Static Public Attributes
DGtal::NumberTraits< long double > Struct Template Reference

#include <NumberTraits.h>

Public Types

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 879 of file NumberTraits.h.


Member Typedef Documentation

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

Definition at line 881 of file NumberTraits.h.

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

Definition at line 883 of file NumberTraits.h.

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

Definition at line 884 of file NumberTraits.h.

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

Definition at line 882 of file NumberTraits.h.

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

Definition at line 888 of file NumberTraits.h.

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

Definition at line 887 of file NumberTraits.h.

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

Definition at line 885 of file NumberTraits.h.

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

Definition at line 886 of file NumberTraits.h.


Member Function Documentation

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

Definition at line 923 of file NumberTraits.h.

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

Definition at line 919 of file NumberTraits.h.

{
return static_cast<int64_t>( aT );
}
static unsigned int DGtal::NumberTraits< long double >::digits ( )
inlinestatic

Definition at line 907 of file NumberTraits.h.

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

Definition at line 911 of file NumberTraits.h.

References DGtal::BOUNDED.

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

Definition at line 915 of file NumberTraits.h.

References DGtal::SIGNED.

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

Definition at line 903 of file NumberTraits.h.

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

Definition at line 899 of file NumberTraits.h.

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

Definition at line 895 of file NumberTraits.h.

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

Definition at line 891 of file NumberTraits.h.

{
return 0.0;
}

Field Documentation

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

Definition at line 890 of file NumberTraits.h.

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

Definition at line 889 of file NumberTraits.h.


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