STK++ 1.0

STK::Arithmetic< Char > Struct Template Reference

Specialization of the struct Arithmetic for Char. More...

#include <STK_Char.h>

Inheritance diagram for STK::Arithmetic< Char >:

List of all members.

Static Public Member Functions

static Char NA () throw ()
 Adding a Non Avalaible (NA) special number.
static bool isNA (const Char &x) throw ()
 Test if x is a Non Avalaible (NA) Char.
static bool isInfinite (const Char &x) throw ()
 Test if x is infinite.
static bool isFinite (const Char &x) throw ()
 Test if x is finite.

Static Public Attributes

static const bool hasNA = false
 True if the type has a representation for a "Not Available.".

Detailed Description

template<>
struct STK::Arithmetic< Char >

Specialization of the struct Arithmetic for Char.

The STK fundamental type Char does not have NA value. If the user ask for a NA value, the method return 0.

Definition at line 112 of file STK_Char.h.


Member Function Documentation

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

Adding a Non Avalaible (NA) special number.

Returns:
the 0 character

Definition at line 117 of file STK_Char.h.

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

Test if x is a Non Avalaible (NA) Char.

Parameters:
xthe Char to test.
Returns:
always false as the Char type does not have NA value.

Definition at line 128 of file STK_Char.h.

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

Test if x is infinite.

Parameters:
xthe Char to test.
Returns:
always false

Definition at line 135 of file STK_Char.h.

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

Test if x is finite.

Parameters:
xthe Char to test.
Returns:
always true

Definition at line 142 of file STK_Char.h.

  { return true; }

Member Data Documentation

const bool STK::Arithmetic< Char >::hasNA = false [static]

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

Definition at line 122 of file STK_Char.h.


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