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

Specialization for Binary. More...

#include <STK_Binary.h>

Inherits std::numeric_limits<Binary>.

List of all members.

Static Public Member Functions

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

Static Public Attributes

static const bool hasNA = true


Detailed Description

template<>
struct STK::Arithmetic< Binary >

NA (not available) numbers is part of the union.

Definition at line 69 of file STK_Binary.h.


Member Function Documentation

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

Adding a Non Avalaible (NA) special number.

Definition at line 73 of file STK_Binary.h.

References STK::binaryNA.

00074    { return binaryNA;}

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

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

Parameters:
x the Binary number to test.

Definition at line 83 of file STK_Binary.h.

References STK::binaryNA.

00084    { return (x==binaryNA);}

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

test if x is infinite.

Parameters:
x the Binary number to test.

Definition at line 89 of file STK_Binary.h.

00090    { return false; }

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

test if x is finite.

Parameters:
x the Binary number to test.

Definition at line 95 of file STK_Binary.h.

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

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


Member Data Documentation

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

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

Definition at line 78 of file STK_Binary.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