STK++ 0.9.13
STK::Arithmetic< Sign > Struct Reference

Specialization for Sign. More...

#include <STK_Sign.h>

Inheritance diagram for STK::Arithmetic< Sign >:
Inheritance graph

Static Public Member Functions

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

Specialization for Sign.

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

Definition at line 64 of file STK_Sign.h.

Member Function Documentation

◆ isFinite()

static bool STK::Arithmetic< Sign >::isFinite ( const Sign x)
throw (
)
inlinestatic

Test if x is finite.

Parameters
xthe Sign number to test.

Definition at line 81 of file STK_Sign.h.

81{ return (!isNA(x) && !isInfinite(x));}
static bool isNA(const Sign &x)
Test if x is a Non Available (NA) special number.
Definition STK_Sign.h:73
static bool isInfinite(const Sign &x)
Test if x is infinite.
Definition STK_Sign.h:77

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

◆ isInfinite()

static bool STK::Arithmetic< Sign >::isInfinite ( const Sign x)
throw (
)
inlinestatic

Test if x is infinite.

Parameters
xthe Sign number to test.

Definition at line 77 of file STK_Sign.h.

77{ return false; }

◆ isNA()

static bool STK::Arithmetic< Sign >::isNA ( const Sign x)
throw (
)
inlinestatic

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

Parameters
xthe Sign number to test.

Definition at line 73 of file STK_Sign.h.

73{ return (x==signNA_);}
@ signNA_
Not Available value.
Definition STK_Sign.h:51

References STK::signNA_.

◆ NA()

static Sign STK::Arithmetic< Sign >::NA ( )
throw (
)
inlinestatic

Adding a Non Available (NA) special number.

Definition at line 67 of file STK_Sign.h.

67{ return signNA_;}

References STK::signNA_.

Member Data Documentation

◆ hasNA

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

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

Definition at line 69 of file STK_Sign.h.


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