DGtal  0.9.4beta
Public Types | Static Public Member Functions | Static Public Attributes
DGtal::NumberTraits< 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 double SignedVersion
 
typedef double UnsignedVersion
 
typedef double ReturnType
 
typedef boost::call_traits< 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 double &aT)
 
static double castToDouble (const double &aT)
 

Static Public Attributes

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

Detailed Description

template<>
struct DGtal::NumberTraits< double >

Specialization for double.

Definition at line 832 of file NumberTraits.h.

Member Typedef Documentation

Definition at line 835 of file NumberTraits.h.

Definition at line 834 of file NumberTraits.h.

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

Definition at line 837 of file NumberTraits.h.

Definition at line 838 of file NumberTraits.h.

Definition at line 836 of file NumberTraits.h.

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

Definition at line 842 of file NumberTraits.h.

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

Definition at line 841 of file NumberTraits.h.

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

Definition at line 839 of file NumberTraits.h.

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

Definition at line 840 of file NumberTraits.h.

Member Function Documentation

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

Definition at line 877 of file NumberTraits.h.

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

Definition at line 873 of file NumberTraits.h.

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

Definition at line 861 of file NumberTraits.h.

862  {
863  return DBL_DIG;
864  }
static BoundEnum DGtal::NumberTraits< double >::isBounded ( )
inlinestatic

Definition at line 865 of file NumberTraits.h.

References DGtal::BOUNDED.

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

Definition at line 869 of file NumberTraits.h.

References DGtal::SIGNED.

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

Definition at line 857 of file NumberTraits.h.

858  {
859  return DBL_MAX;
860  }
static ReturnType DGtal::NumberTraits< double >::min ( )
inlinestatic

Definition at line 853 of file NumberTraits.h.

854  {
855  return DBL_MIN;
856  }
static ReturnType DGtal::NumberTraits< double >::one ( )
inlinestatic

Definition at line 849 of file NumberTraits.h.

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

Definition at line 845 of file NumberTraits.h.

846  {
847  return 0.0;
848  }

Field Documentation

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

Definition at line 844 of file NumberTraits.h.

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

Definition at line 843 of file NumberTraits.h.


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