STK::Arithmetic< NotAvailable > Struct Template Reference
[Arithmetic properties.]

Specialization for NotAvailable. More...

#include <STK_NotAvailable.h>

Inherits std::numeric_limits<NotAvailable>.

List of all members.

Static Public Member Functions

static NotAvailable NA () throw ()
static bool isNA (const NotAvailable &x) throw ()
static bool isInfinite (const NotAvailable &x) throw ()
static bool isFinite (const NotAvailable &x) throw ()

Static Public Attributes

static const bool hasNA = true


Detailed Description

template<>
struct STK::Arithmetic< NotAvailable >

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

Definition at line 69 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 73 of file STK_NotAvailable.h.

References STK::missing.

00074   { 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:
x the NA value to test.

Definition at line 83 of file STK_NotAvailable.h.

00084   { return true;}

static bool STK::Arithmetic< NotAvailable >::isInfinite ( const NotAvailable x  )  throw () [inline, static]

Test if x is infinite.

Parameters:
x the NA value to test.

Definition at line 89 of file STK_NotAvailable.h.

00090   { return false; }

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

Test if x is finite.

Parameters:
x the NA value to test.

Definition at line 95 of file STK_NotAvailable.h.

00096   { 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 78 of file STK_NotAvailable.h.


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

Generated on Fri Sep 25 10:31:01 2009 for STK++ by  doxygen 1.5.8