STK++ 1.0

STK::Arithmetic< Binary > Struct Template Reference

Specialization for Binary. More...

#include <STK_Binary.h>

Inheritance diagram for STK::Arithmetic< Binary >:

List of all members.

Static Public Member Functions

static Binary NA () throw ()
 Adding a Non Avalaible (NA) special number.
static bool isNA (const Binary &x) throw ()
 Test if x is a Non Avalaible (NA) special number.
static bool isInfinite (const Binary &x) throw ()
 test if x is infinite.
static bool isFinite (const Binary &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< Binary >

Specialization for Binary.

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

Definition at line 64 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 68 of file STK_Binary.h.

References STK::binaryNA.

   { 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:
xthe Binary number to test.

Definition at line 78 of file STK_Binary.h.

References STK::binaryNA.

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

test if x is infinite.

Parameters:
xthe Binary number to test.

Definition at line 84 of file STK_Binary.h.

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

test if x is finite.

Parameters:
xthe Binary number to test.

Definition at line 90 of file STK_Binary.h.

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

   { 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 73 of file STK_Binary.h.


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