types.h File Reference

Basic types definitions and templates. More...

#include <stdlib.h>

Include dependency graph for types.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T>
static bool is_signed_char (const T &a_arg)
 Return false for any variable that is not a char.
template<>
static bool is_signed_char (const char &a_arg)
 Return true for any variable that is a char.
template<typename T>
static bool is_unsigned_char (const T &a_arg)
 Return false for any variable that is not an unsigned char.
template<>
static bool is_unsigned_char (const unsigned char &a_arg)
 Return true for any variable that is an unsigned char.
template<typename T>
static bool is_char (const T &a_arg)
 Return true for any variable that is either a signed or unsigned char.
template<typename T>
static bool is_signed_short (const T &a_arg)
 Return false for any variable that is not a short.
template<>
static bool is_signed_short (const short &a_arg)
 Return true for any variable that is a short.
template<typename T>
static bool is_unsigned_short (const T &a_arg)
 Return false for any variable that is not an unsigned short.
template<>
static bool is_unsigned_short (const unsigned short &a_arg)
 Return true for any variable that is an unsigned short.
template<typename T>
static bool is_short (const T &a_arg)
 Return true for any variable that is either a signed or unsigned short.
template<typename T>
static bool is_signed_int (const T &a_arg)
 Return false for any variable that is not a int.
template<>
static bool is_signed_int (const int &a_arg)
 Return true for any variable that is a int.
template<typename T>
static bool is_unsigned_int (const T &a_arg)
 Return false for any variable that is not an unsigned int.
template<>
static bool is_unsigned_int (const unsigned int &a_arg)
 Return true for any variable that is an unsigned int.
template<typename T>
static bool is_int (const T &a_arg)
 Return true for any variable that is either a signed or unsigned int.
template<typename T>
static bool is_signed_long (const T &a_arg)
 Return false for any variable that is not a long.
template<>
static bool is_signed_long (const long &a_arg)
 Return true for any variable that is a long.
template<typename T>
static bool is_unsigned_long (const T &a_arg)
 Return false for any variable that is not an unsigned long.
template<>
static bool is_unsigned_long (const unsigned long &a_arg)
 Return true for any variable that is an unsigned long.
template<typename T>
static bool is_long (const T &a_arg)
 Return true for any variable that is either a signed or unsigned long.
template<typename T>
static bool is_signed_long_long (const T &a_arg)
 Return false for any variable that is not a long long.
template<>
static bool is_signed_long_long (const long long &a_arg)
 Return true for any variable that is a long long.
template<typename T>
static bool is_unsigned_long_long (const T &a_arg)
 Return false for any variable that is not an unsigned long long.
template<>
static bool is_unsigned_long_long (const unsigned long long &a_arg)
 Return true for any variable that is an unsigned long long.
template<typename T>
static bool is_long_long (const T &a_arg)
 Return true for any variable that is either a signed or unsigned long long.
template<typename T>
static bool is_float (const T &a_arg)
 Return false for any variable that is not a float.
template<>
static bool is_float (const float &a_arg)
 Return true for any variable that is a float.
template<typename T>
static bool is_double (const T &a_arg)
 Return false for any variable that is not a double.
template<>
static bool is_double (const double &a_arg)
 Return true for any variable that is a double.
template<typename T>
static bool is_bool (const T &a_arg)
 Return false for any variable that is not a bool.
template<>
static bool is_bool (const bool &a_arg)
 Return true for any variable that is a bool.
template<typename T>
static bool is_signed (const T &a_arg)
 Return true for any variable that is a signed type.
template<typename T>
static bool is_unsigned (const T &a_arg)
 Return true for any variable that is an unsigned type.
template<typename T>
static char * type_name (const T &a_arg)
template<>
static char * type_name (const unsigned char &a_arg)
template<>
static char * type_name (const char &a_arg)
template<>
static char * type_name (const unsigned short &a_arg)
template<>
static char * type_name (const short &a_arg)
template<>
static char * type_name (const unsigned int &a_arg)
template<>
static char * type_name (const int &a_arg)
template<>
static char * type_name (const unsigned long &a_arg)
template<>
static char * type_name (const long &a_arg)
template<>
static char * type_name (const unsigned long long &a_arg)
template<>
static char * type_name (const long long &a_arg)
template<>
static char * type_name (const float &a_arg)
template<>
static char * type_name (const double &a_arg)
template<>
static char * type_name (const bool &a_arg)


Detailed Description

Basic types definitions and templates.

Definition in file types.h.


Function Documentation

template<>
static bool is_bool ( const bool &  a_arg  )  [static]

Return true for any variable that is a bool.

Definition at line 264 of file types.h.

template<typename T>
static bool is_bool ( const T &  a_arg  )  [static]

Return false for any variable that is not a bool.

Definition at line 259 of file types.h.

Referenced by test_type().

template<typename T>
static bool is_char ( const T &  a_arg  )  [static]

Return true for any variable that is either a signed or unsigned char.

Definition at line 120 of file types.h.

References is_signed_char(), and is_unsigned_char().

Referenced by absolute(), safe_num< T >::add(), safe_num< T >::divide(), safe_num< T >::multiply(), and safe_num< T >::subtract().

Here is the call graph for this function:

template<>
static bool is_double ( const double &  a_arg  )  [static]

Return true for any variable that is a double.

Definition at line 252 of file types.h.

template<typename T>
static bool is_double ( const T &  a_arg  )  [static]

Return false for any variable that is not a double.

Definition at line 247 of file types.h.

Referenced by is_signed(), and test_type().

template<>
static bool is_float ( const float &  a_arg  )  [static]

Return true for any variable that is a float.

Definition at line 240 of file types.h.

template<typename T>
static bool is_float ( const T &  a_arg  )  [static]

Return false for any variable that is not a float.

Definition at line 235 of file types.h.

Referenced by is_signed(), and test_type().

template<typename T>
static bool is_int ( const T &  a_arg  )  [static]

Return true for any variable that is either a signed or unsigned int.

Definition at line 174 of file types.h.

References is_signed_int(), and is_unsigned_int().

Here is the call graph for this function:

template<typename T>
static bool is_long ( const T &  a_arg  )  [static]

Return true for any variable that is either a signed or unsigned long.

Definition at line 201 of file types.h.

References is_signed_long(), and is_unsigned_long().

Here is the call graph for this function:

template<typename T>
static bool is_long_long ( const T &  a_arg  )  [static]

Return true for any variable that is either a signed or unsigned long long.

Definition at line 228 of file types.h.

References is_signed_long_long(), and is_unsigned_long_long().

Here is the call graph for this function:

template<typename T>
static bool is_short ( const T &  a_arg  )  [static]

Return true for any variable that is either a signed or unsigned short.

Definition at line 147 of file types.h.

References is_signed_short(), and is_unsigned_short().

Here is the call graph for this function:

template<typename T>
static bool is_signed ( const T &  a_arg  )  [static]

Return true for any variable that is a signed type.

Definition at line 271 of file types.h.

References is_double(), is_float(), is_signed_char(), is_signed_int(), is_signed_long(), is_signed_long_long(), and is_signed_short().

Here is the call graph for this function:

template<>
static bool is_signed_char ( const char &  a_arg  )  [static]

Return true for any variable that is a char.

Definition at line 105 of file types.h.

template<typename T>
static bool is_signed_char ( const T &  a_arg  )  [static]

Return false for any variable that is not a char.

Definition at line 100 of file types.h.

Referenced by is_char(), is_signed(), and test_type().

template<>
static bool is_signed_int ( const int &  a_arg  )  [static]

Return true for any variable that is a int.

Definition at line 159 of file types.h.

template<typename T>
static bool is_signed_int ( const T &  a_arg  )  [static]

Return false for any variable that is not a int.

Definition at line 154 of file types.h.

Referenced by is_int(), is_signed(), and test_type().

template<>
static bool is_signed_long ( const long &  a_arg  )  [static]

Return true for any variable that is a long.

Definition at line 186 of file types.h.

template<typename T>
static bool is_signed_long ( const T &  a_arg  )  [static]

Return false for any variable that is not a long.

Definition at line 181 of file types.h.

Referenced by is_long(), is_signed(), and test_type().

template<>
static bool is_signed_long_long ( const long long &  a_arg  )  [static]

Return true for any variable that is a long long.

Definition at line 213 of file types.h.

template<typename T>
static bool is_signed_long_long ( const T &  a_arg  )  [static]

Return false for any variable that is not a long long.

Definition at line 208 of file types.h.

Referenced by is_long_long(), is_signed(), and test_type().

template<>
static bool is_signed_short ( const short &  a_arg  )  [static]

Return true for any variable that is a short.

Definition at line 132 of file types.h.

template<typename T>
static bool is_signed_short ( const T &  a_arg  )  [static]

Return false for any variable that is not a short.

Definition at line 127 of file types.h.

Referenced by is_short(), is_signed(), and test_type().

template<typename T>
static bool is_unsigned ( const T &  a_arg  )  [static]

Return true for any variable that is an unsigned type.

Definition at line 286 of file types.h.

References is_unsigned_char(), is_unsigned_int(), is_unsigned_long(), is_unsigned_long_long(), and is_unsigned_short().

Here is the call graph for this function:

template<>
static bool is_unsigned_char ( const unsigned char &  a_arg  )  [static]

Return true for any variable that is an unsigned char.

Definition at line 115 of file types.h.

template<typename T>
static bool is_unsigned_char ( const T &  a_arg  )  [static]

Return false for any variable that is not an unsigned char.

Definition at line 110 of file types.h.

Referenced by is_char(), is_unsigned(), and test_type().

template<>
static bool is_unsigned_int ( const unsigned int &  a_arg  )  [static]

Return true for any variable that is an unsigned int.

Definition at line 169 of file types.h.

template<typename T>
static bool is_unsigned_int ( const T &  a_arg  )  [static]

Return false for any variable that is not an unsigned int.

Definition at line 164 of file types.h.

Referenced by is_int(), is_unsigned(), and test_type().

template<>
static bool is_unsigned_long ( const unsigned long &  a_arg  )  [static]

Return true for any variable that is an unsigned long.

Definition at line 196 of file types.h.

template<typename T>
static bool is_unsigned_long ( const T &  a_arg  )  [static]

Return false for any variable that is not an unsigned long.

Definition at line 191 of file types.h.

Referenced by is_long(), is_unsigned(), and test_type().

template<>
static bool is_unsigned_long_long ( const unsigned long long &  a_arg  )  [static]

Return true for any variable that is an unsigned long long.

Definition at line 223 of file types.h.

template<typename T>
static bool is_unsigned_long_long ( const T &  a_arg  )  [static]

Return false for any variable that is not an unsigned long long.

Definition at line 218 of file types.h.

Referenced by is_long_long(), is_unsigned(), and test_type().

template<>
static bool is_unsigned_short ( const unsigned short &  a_arg  )  [static]

Return true for any variable that is an unsigned short.

Definition at line 142 of file types.h.

template<typename T>
static bool is_unsigned_short ( const T &  a_arg  )  [static]

Return false for any variable that is not an unsigned short.

Definition at line 137 of file types.h.

Referenced by is_short(), is_unsigned(), and test_type().

template<>
static char* type_name ( const bool &  a_arg  )  [static]

Definition at line 352 of file types.h.

template<>
static char* type_name ( const double &  a_arg  )  [static]

Definition at line 348 of file types.h.

template<>
static char* type_name ( const float &  a_arg  )  [static]

Definition at line 344 of file types.h.

template<>
static char* type_name ( const long long &  a_arg  )  [static]

Definition at line 340 of file types.h.

template<>
static char* type_name ( const unsigned long long &  a_arg  )  [static]

Definition at line 336 of file types.h.

template<>
static char* type_name ( const long &  a_arg  )  [static]

Definition at line 332 of file types.h.

template<>
static char* type_name ( const unsigned long &  a_arg  )  [static]

Definition at line 328 of file types.h.

template<>
static char* type_name ( const int &  a_arg  )  [static]

Definition at line 324 of file types.h.

template<>
static char* type_name ( const unsigned int &  a_arg  )  [static]

Definition at line 320 of file types.h.

template<>
static char* type_name ( const short &  a_arg  )  [static]

Definition at line 316 of file types.h.

template<>
static char* type_name ( const unsigned short &  a_arg  )  [static]

Definition at line 312 of file types.h.

template<>
static char* type_name ( const char &  a_arg  )  [static]

Definition at line 308 of file types.h.

template<>
static char* type_name ( const unsigned char &  a_arg  )  [static]

Definition at line 304 of file types.h.

template<typename T>
static char* type_name ( const T &  a_arg  )  [static]

Definition at line 300 of file types.h.

Referenced by test_type().


Generated on Tue Jul 1 12:11:12 2008 for rvm by  doxygen 1.5.1