STK++ 1.0

STK::Arithmetic< NotAvailable > Struct Template Reference

Specialization for NotAvailable. More...

#include <STK_NotAvailable.h>

Inheritance diagram for STK::Arithmetic< NotAvailable >:

List of all members.

Static Public Member Functions

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

Static Public Attributes

static const bool hasNA = true
 True if the type has a representation for a "Not Available".

Detailed Description

template<>
struct STK::Arithmetic< NotAvailable >

Specialization for NotAvailable.

The NA Type is for variable always Not Available. It is thus never available.

Definition at line 64 of file STK_NotAvailable.h.


Member Function Documentation

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

Adding a Non Avalaible (NA) special number.

Definition at line 68 of file STK_NotAvailable.h.

References STK::missing.

  { return missing;}
static bool STK::Arithmetic< NotAvailable >::isNA ( const NotAvailable x) throw () [inline, static]

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

Parameters:
xthe NA value to test.

Definition at line 78 of file STK_NotAvailable.h.

  { return true;}
static bool STK::Arithmetic< NotAvailable >::isInfinite ( const NotAvailable x) throw () [inline, static]

Test if x is infinite.

Parameters:
xthe NA value to test.

Definition at line 84 of file STK_NotAvailable.h.

  { return false; }
static bool STK::Arithmetic< NotAvailable >::isFinite ( const NotAvailable x) throw () [inline, static]

Test if x is finite.

Parameters:
xthe NA value to test.

Definition at line 90 of file STK_NotAvailable.h.

  { return false;}

Member Data Documentation

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

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

Definition at line 73 of file STK_NotAvailable.h.


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