STK++ 1.0

STK::Arithmetic< Real > Struct Template Reference

Specialization for Real. More...

#include <STK_Real.h>

Inheritance diagram for STK::Arithmetic< Real >:

List of all members.

Static Public Member Functions

static Real NA () throw ()
 Adding a Non Avalaible (NA) special number using the quiet_NaN method.
static bool isNA (Real const &x) throw ()
 Test if x is a Non Avalaible (NA) special number.
static bool isInfinite (Real const &x) throw ()
 Test if x is infinite.
static bool isFinite (Real const &x) throw ()
 Test if x is finite.

Static Public Attributes

static const bool has_quiet_NaN = false
 We are using the quiet_NaN representation for NA numbers.
static const bool hasNA = true
 True if the type has a representation for a "Not Available.".

Detailed Description

template<>
struct STK::Arithmetic< Real >

Specialization for Real.

We are using the quiet_NaN() representation of the underlying Type for representing NA (not available) numbers.

Definition at line 60 of file STK_Real.h.


Member Function Documentation

static Real STK::Arithmetic< Real >::NA ( ) throw () [inline, static]

Adding a Non Avalaible (NA) special number using the quiet_NaN method.

Definition at line 69 of file STK_Real.h.

  { return std::numeric_limits<Real>::quiet_NaN();}
static bool STK::Arithmetic< Real >::isNA ( Real const &  x) throw () [inline, static]

Test if x is a Non Avalaible (NA) special number.

Parameters:
xthe Real to test.

Definition at line 78 of file STK_Real.h.

  { return !(x==x);}
static bool STK::Arithmetic< Real >::isInfinite ( Real const &  x) throw () [inline, static]

Test if x is infinite.

Parameters:
xthe Real to test.

Definition at line 84 of file STK_Real.h.

References STK::max().

static bool STK::Arithmetic< Real >::isFinite ( Real const &  x) throw () [inline, static]

Test if x is finite.

Parameters:
xthe Real to test.

Definition at line 93 of file STK_Real.h.

References STK::Arithmetic< TYPE >::isInfinite(), and STK::Arithmetic< TYPE >::isNA().

  { return (!isNA(x) && !isInfinite(x));}

Member Data Documentation

const bool STK::Arithmetic< Real >::has_quiet_NaN = false [static]

We are using the quiet_NaN representation for NA numbers.

Definition at line 64 of file STK_Real.h.

const bool STK::Arithmetic< Real >::hasNA = true [static]

True if the type has a representation for a "Not Available.".

Definition at line 73 of file STK_Real.h.


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