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

Specialization for String. More...

#include <STK_String.h>

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

Static Public Member Functions

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

Specialization for String.

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

Definition at line 51 of file STK_String.h.

Member Function Documentation

◆ isFinite()

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

Test if x is finite.

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

Definition at line 71 of file STK_String.h.

71{ return (!isNA(x));}
static bool isNA(String const &x)
Test if x is a Non Available (NA) String.
Definition STK_String.h:61

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

◆ isInfinite()

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

Test if x is infinite.

Parameters
xthe String to test.
Returns
false

Definition at line 66 of file STK_String.h.

66{ return false; }

◆ isNA()

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

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

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

Definition at line 61 of file STK_String.h.

61{ return (x == NA());}
static String NA()
Adding a Non Available (NA) special String (the empty String)
Definition STK_String.h:54

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

◆ NA()

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

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

Definition at line 54 of file STK_String.h.

54{ return String();}
std::basic_string< Char > String
STK fundamental type of a String.

Member Data Documentation

◆ hasNA

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

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

Definition at line 56 of file STK_String.h.


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