STK++ 1.0

STK::Arithmetic< Sign > Struct Template Reference

Specialization for Sign. More...

#include <STK_Sign.h>

Inheritance diagram for STK::Arithmetic< Sign >:

List of all members.

Static Public Member Functions

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

Specialization for Sign.

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

Definition at line 63 of file STK_Sign.h.


Member Function Documentation

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

Adding a Non Avalaible (NA) special number.

Definition at line 67 of file STK_Sign.h.

References STK::SignNA.

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

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

Parameters:
xthe Sign number to test.

Definition at line 77 of file STK_Sign.h.

References STK::SignNA.

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

Test if x is infinite.

Parameters:
xthe Sign number to test.

Definition at line 83 of file STK_Sign.h.

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

Test if x is finite.

Parameters:
xthe Sign number to test.

Definition at line 89 of file STK_Sign.h.

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

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

Member Data Documentation

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

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

Definition at line 72 of file STK_Sign.h.


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