STK++ 1.0

STK::Arithmetic< String > Struct Template Reference

Specialization for String. More...

#include <STK_String.h>

Inheritance diagram for STK::Arithmetic< String >:

List of all members.

Static Public Member Functions

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

Specialization for String.

The STK fundamental type String use the empty String to represent NA String.

Definition at line 63 of file STK_String.h.


Member Function Documentation

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

Adding a Non Avalaible (NA) special String (the empty String)

Definition at line 67 of file STK_String.h.

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

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

Parameters:
xthe String to test.
Returns:
true if x is a NA String, false otherwise

Definition at line 78 of file STK_String.h.

References STK::Arithmetic< TYPE >::NA().

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

Test if x is infinite.

Parameters:
xthe String to test.
Returns:
false

Definition at line 85 of file STK_String.h.

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

Test if x is finite.

Parameters:
xthe String to test.
Returns:
true if x not a NA string, false otherwise

Definition at line 92 of file STK_String.h.

References STK::Arithmetic< TYPE >::isNA().

  { return (!isNA(x));}

Member Data Documentation

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

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

Definition at line 72 of file STK_String.h.


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