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

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

#include <STK_Char.h>

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

Static Public Member Functions

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

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 49 of file STK_Char.h.

Member Function Documentation

◆ isFinite()

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

Test if x is finite.

Parameters
xthe Char to test.
Returns
always true

Definition at line 76 of file STK_Char.h.

76{ return true; }

◆ isInfinite()

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

Test if x is infinite.

Parameters
xthe Char to test.
Returns
always false

Definition at line 70 of file STK_Char.h.

70{ return false; }

◆ isNA()

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

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

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

Definition at line 64 of file STK_Char.h.

64{ return false; }

◆ NA()

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

Adding a Non Available (NA) special number.

Returns
the 0 character

Definition at line 54 of file STK_Char.h.

54{ return static_cast<Char>(0); }
char Char
STK fundamental type of a Char.

Member Data Documentation

◆ hasNA

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

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

Definition at line 58 of file STK_Char.h.


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